Repository navigation
test(e2e): select the onboarding Codex card by its exact name - #24439
Conversation
#22720 dropped the command subtitle from onboarding agent cards, so the Codex card's accessible name is now "Codex" and /^Codex\s/ never matches.
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Onboarding Codex card selector updated — the five onboarding/fresh-profile E2E helpers now target the card with
getByRole('button', { name: 'Codex', exact: true })instead of the anchored regex/^Codex\s/, restoring the nightly run after the card's accessible name changed.
The claim behind the fix checks out: src/renderer/src/lib/agent-catalog.tsx:57-58 sets the codex label to exactly 'Codex', and AgentStep.tsx:216-218 renders only {agent.label}, so the button's accessible name is now bare "Codex" and the old /^Codex\s/ (which requires trailing whitespace) matches nothing. A grep of tests/e2e/ found no remaining onboarding-card use of the old pattern; the ^Codex hit in tests/e2e/helpers/golden-stub-agent.ts:54 is for the tab-bar menu item and already tolerates a bare Codex.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughFive E2E test locators now match the button with the exact accessible name Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The E2E tests now select the rendered Codex button by its exact English name. No actionable merge-blocking risk remains in this change. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |

ELI5
Five E2E tests that walk through first-run onboarding fail every night because they can't find the "Codex" button on the "pick your agent" step. The button is still there; its name changed, and the tests were looking for the old name.
What Changed
Test-only; users see no difference.
onboarding.spec.ts(3 tests),golden-core-flows.spec.ts, andgolden-fresh-profile-terminal.spec.tsnow find the card withgetByRole('button', { name: 'Codex', exact: true })instead of/^Codex\s/.Why
#22720 removed the command subtitle (
codex) from each onboarding agent card. That changed the card's accessible name, which screen readers and Playwright both use, from "Codex codex" to "Codex"./^Codex\s/requires more text after "Codex", so it now matches nothing, and each test times out after 30 s on the click. The tests first failed on the 2026-09-30 nightly, the first one after #22720 merged, and failed again on 10-01 (run).An exact match is stricter than the old prefix match. No other agent's label is exactly "Codex", and other model-picker labels such as "GPT-5.3 Codex" don't start with it. Bringing the subtitle back was not an option: #22720 removed it on purpose. I also checked the 74 UI strings #22720 removed against
tests/e2e/; no other test references any of them.Testing
Targeted E2E dispatch for the three specs on this branch: 36909013377 (in progress)
oxfmtandoxlintare clean on the touched files.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Linked Issue
N/A (maintainer fix for the red nightly E2E run on
main)Visual Proof
N/A: test-only change, no UI or behavior change.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Test-only. No SSH, mobile, wire, or cross-version impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)