Improve E2E test resilience for logs_server and update snapshot (#2613)
## Summary
- Improve picker button wait reliability in logs_server.spec.ts using
toPass() with visibility and enabled checks
- Update local_agent_read_logs snapshot to use regex for dynamic log
count matching
## Test plan
- Run the affected E2E tests: `npx playwright test logs_server.spec.ts
local_agent_read_logs.spec.ts`
- Tests should pass consistently without timing-related flakiness
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2613"
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 -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Improve logs_server E2E stability and update a snapshot to handle
dynamic log counts. We now poll with toPass until the picker button is
visible and enabled, and the snapshot uses a regex (/LOGS Reading \d+
logs/) instead of a fixed count.
<sup>Written for commit 1810af01aee8f1862c36ded946adda4a60436b97.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Co-authored-by:
Will Chen <willchen90@gmail.com>
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论