Repository navigation
test(planning): wait for cross-page state before the UI suites act on it - #8436
Conversation
ui_myreports read the owner's report id before the owner's page had polled it, so reportAct ran with an undefined id (main run 39266464614). Wait for the report on the owner's page first, with a clear assertion if it never arrives. The same read-then-act shape is fixed in ui_general (Claude's chat answer after a reload), ui_review (the host's request ids, now an 8-10 s wait with an assertion instead of a 5 s in-page poll that threw), and ui_inbox (Bo's own request before the leak check). The upload and heartbeat route handlers in ui_uploads and ui_journey now swallow a request aborted under them, as #8418 did for ui_general. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
|
claude-security-review reviewed No security issues found. PR #8436 at head 553c8c7 changes only Playwright UI test suites under |
|
claude-review reviewed No findings. I read the full diff (7 files) and the PR context. The PR has no closing issue, so there were no acceptance criteria to check.
I did not run the suites. The 5x-per-suite and full-run results in the PR's Verification section are author-claimed and unverified by me. |
No related issue: main's post-merge verification run 39266464614 failed on ui_myreports.js.
Summary
ui_myreports.jsfailed on main (run 39266464614) because it read the owner page's copy of a report before that page had polled it. The same read-then-act race, and the route-handler-across-reload race that #8418 fixed, also sat in five other browser suites; this fixes all of them by waiting, never by loosening a check.Fix
ui_myreports.js,ui_general.js,ui_review.js(two places) andui_inbox.jswait withuntil()for a report, request or chat message to reach the other page before reading its id; four of those waits are newok()checks, so a value that never arrives fails with a named check instead of a TypeError.ui_uploads.jsandui_journey.js: route handlers that stay on across a reload or a closed page swallow the aborted request instead of crashing the suite.bump: noneplanning fragment says why no release is needed.Verification
ui.test.shin full at the default 6 jobs and atUI_JOBS=10: 34 suites, 1146 passed, 0 failed both times.Related
🤖 Generated with Claude Code