Improve chat_history E2E test stability with toPass() retry (#2699)
## Summary
- Replaces static timeout-based wait with toPass() retry logic for
ArrowUp navigation wrap test
- Makes the test more resilient to timing variations with the
BeautifulMentionsPlugin
- Uses aria-selected attribute for more reliable selection detection
## Test plan
- Run `npm run e2e -- chat_history.spec.ts` to verify the test passes
- The test should be more stable and less prone to 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/2699"
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>
正在显示
请
注册
或者
登录
后发表评论