fix(e2e): skip external operations in E2E test mode (#2716)
## Summary
- Skip actual Node.js downloads in E2E tests by returning a tiny test
URL instead of the real Node.js installer
- Skip opening external URLs in shell handler to avoid spawning browser
windows during E2E tests
- Both changes are conditional on `E2E_TEST_BUILD=true` environment
variable
## Test plan
- Run E2E tests with `E2E_TEST_BUILD=true` to verify external operations
are skipped
- Verify normal operation is unaffected when the environment variable is
not set
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2716"
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:
Will Chen <willchen90@gmail.com>
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论