Skip to content

fix(dash0): wait for the dismissal PUT before reloading in the checklist e2e - #604

Merged
fclairamb merged 4 commits into
mainfrom
fix/onboarding-dismiss-e2e-race
Oct 18, 2026
Merged

fclairamb merged 4 commits into
mainfrom
fix/onboarding-dismiss-e2e-race

Conversation

@fclairamb

@fclairamb fclairamb commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

The onboarding-checklist test "dismissing survives a full reload, follows the user to another browser session, and is undone from the account page" was racy.

The card hides from local state, then the PUT /api/v1/me/ui-state/<key> goes out asynchronously. The test asserted the card was gone and reloaded at once. If the PUT had not landed, the reload aborted it and the card came back ("Expected: 0, Received: 1"). Seen on a SQLite side-car (serialized writes). Postgres CI usually wins the race.

The test now waits for the PUT response before reloading. Test-only change, the component is untouched (reloading within a few ms of dismissing is not a product bug). The account-page restore already waits for its DELETE before the toast, so it needed nothing.

Verification on a SQLite side-car:

  • Before the fix, --repeat-each=5 --workers=2 --retries=0 failed once at the reload assertion.
  • After the fix, 5/5, and the whole file 15/15 twice.
  • Batch gate on the pre-merge base: make build-backend lint-back test, lint:e2e, typecheck:e2e green, full Playwright suite on Postgres green after embedding status0 (a side-car build issue, not a test failure). After merging main, only lint and typecheck were re-run.

🤖 Generated with Claude Code

fclairamb and others added 4 commits October 18, 2026 22:24
…ist e2e

The card hides from local state on click, so its absence does not prove
the ui-state write landed. The test reloaded straight away and could
abort the PUT. On SQLite the race reproduced 1 in 5 runs.

Co-Authored-By: Claude Haiku 5.5 <[email protected]>
…s before the dismissal PUT lands

Co-Authored-By: Claude Haiku 5.5 <[email protected]>
… before the dismissal PUT lands

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.36%. Comparing base (741d8d7) to head (c4fd722).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
- Coverage   83.36%   83.36%   -0.01%     
==========================================
  Files        1238     1238              
  Lines      127020   127020              
==========================================
- Hits       105891   105890       -1     
- Misses      21120    21121       +1     
  Partials        9        9              

see 13 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fclairamb
fclairamb merged commit 10e8b4e into main Oct 18, 2026
35 checks passed
@fclairamb
fclairamb deleted the fix/onboarding-dismiss-e2e-race branch October 18, 2026 23:18
fclairamb added a commit that referenced this pull request Oct 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.40.0](v0.39.0...v0.40.0)
(2026-10-18)


### Features

* **dash0:** tonal gradients between the flat and the shiny look
([#603](#603))
([741d8d7](741d8d7))
* **docs:** redesign the docs site after www.solidping.io
([#599](#599))
([660deb7](660deb7))


### Bug Fixes

* **dash0:** put the invite button in the organization header
([#601](#601))
([fb0e5bf](fb0e5bf))
* **dash0:** wait for the dismissal PUT before reloading in the
checklist e2e
([#604](#604))
([10e8b4e](10e8b4e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant