Repository navigation
test: Fix flaky dashboard E2E - #3904
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
PR Review
1 finding(s): 🔴 0 P0/P1 · 🟡 0 P2 · 🔵 1 P3 No inline comments. 1 P3 folded at the bottom. 🔵 1 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
Deep ReviewReport-only multi-agent review of a test-only change: two E2E page-object methods ( ✅ No critical issues found. 🟡 P2 — recommended
🔵 P3 nitpicks (2)
Reviewers (5): ce-correctness-reviewer, ce-testing-reviewer, ce-maintainability-reviewer, ce-julik-frontend-races-reviewer, ce-kieran-typescript-reviewer. The previous-comments reviewer was not dispatched — both prior comments are bot notices (Vercel, changeset-bot) with no substantive feedback to verify. Testing gaps: The wait asserts the temporary page is gone, not that the saved dashboard's remote data has rendered; the fix relies on downstream waits ( No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
E2E Test Results✅ All tests passed • 512 passed • 1 skipped • 1051s
Tests ran across 4 shards in parallel. |
Summary
This PR fixes a few flaky dashboard E2E tests. The tests create a saved dashboard from a temporary dashboard, but sometimes apply dashboard edits before the saved dashboard page is loaded, losing the edits once the page finally navigates. This change ensures the tests wait for the navigation before applying edits.
Should fix most of the following flakes from the last week:
Screenshots or video
How to reproduce
How to test on Vercel preview
References
Note
Low Risk
Test-only page-object synchronization; no production code paths change.
Overview
Stabilizes dashboard E2E flows that create a dashboard from the list and then edit it immediately.
createNewDashboardandopenNewTileEditorstill wait for a/dashboards/:idURL, but they now also wait up to 15s forcreate-dashboard-buttonto disappear before continuing. The URL can update while the UI is still on the temporary dashboard; renames and other edits in that window apply to the temp page and are dropped when the saved dashboard loads. Hiding the list’s create control is used as the signal that the swap to the persisted dashboard shell is done.Reviewed by Cursor Bugbot for commit 6cf5742. Bugbot is set up for automated code reviews on this repo. Configure here.