Repository navigation
tests: click the inline Delete button #13615 put back on the action bar - #13634
Merged
Merged
Conversation
#13615 moved Delete from the reply's More menu to an inline bar button. The browser harnesses (heavy_thread, thread_weight, studiobench) still opened the More menu for it, so their delete actions would report NOT RUN, and four guard tests went red on main. Click the bar button, update the guards to the inline design, and find the research-message Delete gate by the hook it calls instead of by component name.
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
#13615 (inline message actions) moved Delete from the reply's More menu back onto the action bar, as an inline
DeleteMessageButtonwithtooltip="Delete". Four tests have been red onmainsince then (seen on #13615's own run, in BackendRepo tests (CPU, studio),studio-installandSelftests):test_thread_harness_controls_exist.py, both tests:playwright_heavy_thread.pyandplaywright_thread_weight.pyask for Delete as a More-menu item, which the assistant bar no longer renders.studiobench/.../test_studiobench_delete_through_more_menu.py::test_every_control_the_scene_asks_for_is_still_rendered: the same thing for the studiobench scene.test_deep_research_frontend_contract.py::test_research_presentation_is_integrated:IndexError, because it looked up the oldDeleteMessageMenuItemcomponent by name.Test or product?
The product change is fine, and the guards are doing their job. The harnesses are what broke. Their delete actions open the More menu and look for a "Delete" item, so in a real browser run against current
main:heavy_threadandthread_weightwould report Delete as NOT RUN;delete_messageaction would report NOT RUN;That is exactly what these guards were added to catch after the previous move (#12735).
This is already happening in CI. The
Real-path session, every action ranjob is red on #13615 and #13621 with:Fix
playwright_heavy_thread.pyandplaywright_thread_weight.pyDELETE_JSnow find the bar's Delete button withactionButton("Delete")before the clock starts and click it.delete_messageand stop cleanup wait for it withwaitForActionButton("Delete", ...).menuOpenMsdiagnostic for a menu it no longer opens, are gone.menu_open_msscoring still comes from themessage_menuaction and is unchanged.test_studiobench_delete_on_the_action_bar.py. It runs the shippedDELETE_JS+dom.jsin node against a bar that has, or lacks, a Delete button.test_thread_harness_controls_exist.pyexpects Delete as a bar button.thread.tsxcomponent that renders Delete throughuseDeleteMessage()and requires each to render nothing whenhidden. It no longer pins a component name that has now changed twice.Verification
if (hidden) return nullgate removed fromDeleteMessageButton(sabotage)DeleteMessageButton renders Delete without the research-message gatetests/studio/studiobench, harness integrity,test_playwright_suites_run_in_ci.py,test_source_read_encoding.py(-n 8)test_formatter_fixed_point.pyNothing references the old selftest filename.
I did not run the browser harnesses themselves here.
Real-path session, every action ranexercises the studiobench path on this PR's own CI.