Unverified 提交 51779705 authored 作者: dyadbot's avatar dyadbot 提交者: GitHub

fix: deflake E2E tests (partial_response.spec.ts) (#2907)

## Summary - Updated stale aria snapshot for `partial_response.spec.ts` that was consistently failing - Button text content now renders actual text (e.g., `file1.txt file1.txt`, `Edit`, `Undo`, `Retry`) instead of empty strings - Removed `wrote 1 file(s)` text entries that no longer appear in the UI ## Context Scanned 5 recent CI runs on main and 13 open PRs by wwwillchen/wwwillchen-bot/dyadbot. Found flaky tests across 16+ spec files. Most flakiness is CI-specific (timing/load dependent) and cannot be reproduced locally with 10x repeats. The `partial_response.spec.ts` snapshot was the only consistently broken test. ## Test plan - [x] `partial_response.spec.ts` passes 10/10 times locally with updated snapshot - [x] Full E2E suite passes (236/243, with only transient flaky failures unrelated to this change) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2907" 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: 's avatarclaude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
上级 fd95897f
- paragraph: /Generate an AI_RULES\.md file for this app\. Describe the tech stack in 5-\d+ bullet points and describe clear rules about what libraries to use for what\./ - paragraph: /Generate an AI_RULES\.md file for this app\. Describe the tech stack in 5-\d+ bullet points and describe clear rules about what libraries to use for what\./
- button "file1.txt file1.txt Edit": - button "file1.txt file1.txt Edit":
- img - img
- text: "" - text: file1.txt file1.txt
- button "Edit": - button "Edit":
- img - img
- text: "" - text: Edit
- img - img
- paragraph: More EOM - paragraph: More EOM
- button "Copy": - button "Copy":
...@@ -15,18 +15,16 @@ ...@@ -15,18 +15,16 @@
- text: test-model - text: test-model
- img - img
- text: less than a minute ago - text: less than a minute ago
- img
- text: wrote 1 file(s)
- paragraph: tc=partial-write - paragraph: tc=partial-write
- paragraph: START OF MESSAGE - paragraph: START OF MESSAGE
- 'button "new-file.ts src/new-file.ts Edit Summary: this file will be partially written"': - 'button "new-file.ts src/new-file.ts Edit Summary: this file will be partially written"':
- img - img
- text: "" - text: new-file.ts src/new-file.ts
- button "Edit": - button "Edit":
- img - img
- text: "" - text: Edit
- img - img
- text: "" - text: "Summary: this file will be partially written"
- paragraph: Finished writing file. - paragraph: Finished writing file.
- paragraph: "[[dyad-dump-path=*]]" - paragraph: "[[dyad-dump-path=*]]"
- button "Copy": - button "Copy":
...@@ -37,11 +35,9 @@ ...@@ -37,11 +35,9 @@
- text: test-model - text: test-model
- img - img
- text: less than a minute ago - text: less than a minute ago
- img
- text: wrote 1 file(s)
- button "Undo": - button "Undo":
- img - img
- text: "" - text: Undo
- button "Retry": - button "Retry":
- img - img
- text: "" - text: Retry
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论