default_chat_mode.spec.ts_default-chat-mode---pro-user-defaults-and-setting-change-applies-to-new-chat-1.txt
63 Bytes
-
由 wwwillchen-bot 提交于
## Summary - Update selectors for renamed UI elements ("Max Chat Turns in Context", "Build" mode, "Add Environment Variable" button) - Fix copy_app test to use more specific dialog and heading selectors for robustness - Refactor edit_code tests to use keyboard interactions instead of fill() for Monaco editor - Update problem button text patterns to match new "Fix N problem(s)" format - Update related test snapshots ## Test plan - [ ] Run `npm test` to verify all unit tests pass - [ ] Run E2E tests to verify the updated selectors work correctly - [ ] Verify the modified tests match the current UI state🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2611" 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 Updates E2E tests to match renamed UI labels and make Monaco editor edits reliable, reducing flakiness and keeping snapshots in sync. Improves selectors and expectations across affected specs. - **Bug Fixes** - Update selectors for renamed labels: “Max Chat Turns in Context”, “Build”, “Add Environment Variable”. - Match new “Fix N problem(s)” button text. - Use scoped dialog and heading selectors in copy_app. - Refresh snapshots to reflect current UI. - **Refactors** - Switch Monaco editor edits to keyboard interactions instead of fill(). - Add auto-approve setup in edit_code tests for stability. <sup>Written for commit 0f1e771f52850e3a6b89286d22ade5a4ff6db606. 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>