Skip to content

test(planning): make the surface ui_journey checks wait for the state they assert - #8028

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-7210-39095236476-1
Oct 18, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-7210-39095236476-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #7210

Hold: a human merges this

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The UI journey checks that failed intermittently (phase 2 focus after Answer again, phase 13 title count) asserted right after a click or a fixed 4s sleep. They now wait for the focused radio and for the title count before asserting. The 20-consecutive-run goal under load was not run here.

Not verified

  • The 20 consecutive passing runs on a loaded machine were not run here; only one run was made. Phase 2's other fixed waits and other phases' sleeps were not audited beyond the two failing checks the issue names.

Fix

  • plugins/planning/surface/tests/ui_journey.js: phase 2 waits for focus on the first choice before asserting; phases 11 and 13 wait up to 15s for the '(1) ' title prefix instead of a fixed 4s sleep
  • .changes/planning/test-surface-journey-waits-3f9a1c72.md: bump none fragment (test-only)

Verification

The run reports:

Left out: the items under Not verified.

Related

#7210

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 525db6615309012281061a55e19ceb5feda4d410: 0 finding(s), 0 as inline comments.

Incremental security review of plugins/planning/surface/tests/ui_journey.js, covering the change since de6c3bd.

The change adds one page.waitForTimeout(1500) to the phase 11 test. It touches no input handling, authentication, secrets, injection surface or standing instruction. It is test timing only.

No security findings.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 525db6615309012281061a55e19ceb5feda4d410: 0 finding(s), 0 as inline comments.

Incremental review of 525db66, which touches only plugins/planning/surface/tests/ui_journey.js. I found nothing to report.

The commit adds a 1500 ms page.waitForTimeout in phase 11, after the wait for the (1) title prefix and before the assertion. Without it, the check could pass the moment the prefix appeared. A late mark-seen reset, which is what the assertion exists to catch, would then go unnoticed. With the pause, a late reset makes the check fail. The only cost is 1.5 s of extra test time, and if the earlier wait times out (its error is caught) the assertion still fails as before. The comment on the new line matches the surrounding style.

I did not run the test. The PR's claimed results (561 passes, one run; the 20-run goal was not met) are author-claimed and unverified by me.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 525db66.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 18, 2026
Merged via the queue into main with commit fc194e7 Oct 18, 2026
20 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-7210-39095236476-1 branch October 18, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant