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>
正在显示
请
注册
或者
登录
后发表评论