Commit 49375c8
fix: deflake E2E tests (setup_flow.spec.ts) (#2740)
## Summary
- Deflake `setup_flow.spec.ts` which was the most flaky test file (20
occurrences across 10 CI runs and 5 PRs)
- Wrap initial "Setup Dyad" heading check in `toPass()` with
`Timeout.MEDIUM` to handle slow page renders in CI
- Wrap `page.reload()` in `toPass()` retry to handle intermittent
`ERR_FILE_NOT_FOUND` errors in Electron
- Expand Node.js accordion section before checking for install button
(section not auto-expanded after reload with mock)
- Use `force: true` on "Continue" button click to avoid accordion
overlap pointer interception
- Replace hardcoded timeouts with `Timeout.MEDIUM` constants for
CI/local adaptability
## Test plan
- [x] Ran `setup_flow.spec.ts` with `--repeat-each=10` (30 tests total)
- all passed
- [x] Previously failed 6/10 times on "node.js install flow" test, now
passes 10/10
- [x] Other top flaky specs (context_manage, chat_input, edit_code,
logs_server, themes_management, fix_error) passed all repeats locally
without changes - their CI flakiness is environment-specific
- [x] All 819 unit tests pass
- [x] Lint and type checks pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2740"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a0bc7c7 commit 49375c8
1 file changed
+32
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
43 | | - | |
44 | 47 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
49 | 63 | | |
50 | 64 | | |
51 | | - | |
| 65 | + | |
52 | 66 | | |
53 | 67 | | |
54 | 68 | | |
| |||
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
67 | 82 | | |
68 | 83 | | |
69 | 84 | | |
70 | 85 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 86 | + | |
| 87 | + | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
| |||
0 commit comments