Repository navigation
fix(test): turn the Suggestion chip on in Claude Code's row on Agents in ui-regression - #3120
Conversation
… in ui-regression
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 24 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Merge note: one test file, no product change. #3108 moved the Suggestion chip switch into the Claude Code row on Settings > Agents; the ui-regression step now opens settings=agents and the Claude row and turns on the same switch, assertions unchanged. No other script points at rows #3108/#3117 moved. In the CI runner image main fails twice at that step, this branch passes; |
What it changes
scripts/ui-regression.ts(CI's required "Browser regression (ui-regression)" job) is red onmainagain:setCheckedtimes out after 30 s waiting forgetByRole('switch', { name: 'Suggestion chip' }).#3108 moved the Suggestion chip switch out of Chat's Composer "More settings" into Claude Code's own settings on the Agents page: in Claude Code's row under "On this PC" when the PC has Claude, else in a "Claude Code" group of its own on that page (and only on a touch screen, which the phone context is). The script still opened
?settings=chat§ion=composer-more, where the switch no longer is.The step now opens
?settings=agents, waits for Claude Code's row or its group, opens the row when it is one, and turns the same switch on. The steps and assertions after it are unchanged.I also checked every
scripts/*file for links, sections and labels of the rows #3108 and #3117 moved or merged (launch-modes,chat-experimental, the oldvoice/remotepages, Permission mode, Artifacts chip, Side conversations chip, Expand thinking, Group agents by state, the two Tidy dictated text switches, the old page names). Apart from this step, #3108 and #3117 had already updated them, so this PR changes only this one script.No product code changes.
Validation
herdr-ci-runner:local(CI env, a fresh worktree,bun install --frozen-lockfile,bun run build,scripts/ci-browser-parallel.tswithBROWSER_SCRIPTS=scripts/ui-regression.ts):origin/main309f5b3: FAIL twice,TimeoutError: setChecked: Timeout 30000ms exceededwaiting for theSuggestion chipswitch.bun run check fast: green (unit 12591 pass, 0 fail; typecheck, build, generated files and workflow syntax ok).ui-contexts-regression, the integration suite and the other browser scripts (only this step of one script changed).