Repository navigation
Chat UI: find the Full access consent dialog by its slots, not its wording - #12640
Conversation
#12630 reworded the Full access consent dialog (Enable Full access? became Turn on Full access?, I understand became Turn on). The consent flow did not change, but the Chat UI permission step looked the heading and the confirm button up by their old English names, so Chat UI Tests went red on main. The step now reaches the title, Cancel and confirm through the data-slot attributes the shared AlertDialog parts render, and still checks that the title names Full access and the body warns about the sandbox. A fast-shard test pins both halves: the step names no dialog copy, and the dialog is still built from the parts those slots come from.
|
@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. What shall we delve into next? 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". |
#12630 also dropped data-variant="danger" from the composer pill on purpose (calmer Full access), so the next line of the permission step failed once the dialog lookup was fixed. expect_mode already checks the pill reads Full access. The fast guard now also pins every attribute the step reads off the pill to one the pill renders.
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
…rding (unslothai#12640) * Find the Full access consent dialog by its slots, not its wording unslothai#12630 reworded the Full access consent dialog (Enable Full access? became Turn on Full access?, I understand became Turn on). The consent flow did not change, but the Chat UI permission step looked the heading and the confirm button up by their old English names, so Chat UI Tests went red on main. The step now reaches the title, Cancel and confirm through the data-slot attributes the shared AlertDialog parts render, and still checks that the title names Full access and the body warns about the sandbox. A fast-shard test pins both halves: the step names no dialog copy, and the dialog is still built from the parts those slots come from. * Stop asserting the Full access pill's removed danger variant unslothai#12630 also dropped data-variant="danger" from the composer pill on purpose (calmer Full access), so the next line of the permission step failed once the dialog lookup was fixed. expect_mode already checks the pill reads Full access. The fast guard now also pins every attribute the step reads off the pill to one the pill renders.
Problem
Chat UI Testsis red on main since #12630 (Studio: shorter permission menu, Learn more, calmer Full access). The permission step fails with:#12630 reworded the consent dialog:
Enable Full access?is nowTurn on Full access?, and the confirm buttonI understandis nowTurn on. The consent flow itself did not change, so this is the test pinning copy, not a product regression.Fix
Studio: shorter permission menu, Learn more, calmer Full access #12630 also removed the pill's
data-variant="danger"for Full access on purpose. With the dialog found, the step failed on the next line (Locator expected to have attribute 'danger', staging Linux and Mac). That assertion is dropped;expect_mode("Full access")already checks the pill's label.tests/studio/playwright_chat_ui.py: the Full access step finds the dialog title, Cancel and confirm through thedata-slotattributes the shared AlertDialog parts render (alert-dialog-title,alert-dialog-cancel,alert-dialog-action). It still checks the substance: the title names Full access, the body warns about the sandbox, Cancel leaves the previous mode, and confirming turns Full access on without persisting it.tests/studio/test_chat_ui_full_access_consent.py(new, fast shard): pins both halves of that contract so a drift shows up in seconds instead of in the Playwright job:alert-dialog.tsxrenders, and the Full access dialog inpermission-mode-select.tsxis built fromAlertDialogTitle,AlertDialogCancelandAlertDialogAction;Verification
AlertDialogActionfor a plainButton: 1 failed;data-variantdanger assertion: 1 failed.tests/test_formatter_fixed_point.pyandtest_chat_ui_permission_reload_wait.pypass.