Skip to content

test(web): the agent update notice test no longer waits on a closed notice's fade - #915

Merged
badcuban merged 1 commit into
mainfrom
fix/provider-update-progress-test-flake
Nov 14, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/provider-update-progress-test-flake

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

The problem

ProviderUpdateProgress.browser.tsx "brings a failure back after its notice was closed mid-run" failed once in #912's CI with expected ['Updating Codex'] to deeply equal []. #912 only touched server code, and the test passed on a re-run.

The test closes the notice and waits, on vi.waitFor's 1 s default, for its title to leave the page. A closed notice stays in the page for its 0.5 s fade (about 560 ms on my machine), so the test had under half a second to spare.

The fix

The titles the test reads now leave out a notice from the moment it starts closing ([data-ending-style] on the toast root), so no check waits on the fade. A notice that never closes still fails the test. Only the test changed.

Checked

  • With the fade slowed to 3 s (* { transition-duration: 3s !important }), the old test fails with the exact CI message and the fixed one passes.
  • vp fmt, vp lint, vp run typecheck, and the spec on repeated runs.

The CI cause is inferred. Slowing the browser's CPU 20x and freezing the page for 900 ms did not make the fade run long locally, so what slowed it on the runner was not observed.

…otice's fade

"brings a failure back after its notice was closed mid-run" closed the
notice and waited, on the 1 s default, for it to leave the page. A closed
notice stays for its 0.5 s fade (about 560 ms here), so a slow fade on a
busy runner failed the test with `expected ['Updating Codex'] to deeply
equal []`, as it did once in #912's CI. The titles the test reads now leave
out a notice from the moment it starts closing.
@vercel

vercel Bot commented Nov 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 14, 2026 4:28pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 41614e8 Nov 14, 2026
24 checks passed
@badcuban
badcuban deleted the fix/provider-update-progress-test-flake branch November 14, 2026 16:41

This branch was previously deployed

1 inactive deployment
Preview — 6ea6bc41 Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant