Unverified 提交 af522d32 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Fix chat mode test (#2159)

fix test breakage from https://github.com/dyad-sh/dyad/pull/2155 <!-- CURSOR_SUMMARY --> > [!NOTE] > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is generating a summary for commit 22342fd91b4708311796b51552b0106acea66b9b. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adjusted chat mode selection in e2e tests to match updated UI labels and prevent failures. Uses "Agent v2" and "Build with MCP" instead of the old "(experimental)" labels. <sup>Written for commit 22342fd91b4708311796b51552b0106acea66b9b. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
上级 229e765f
......@@ -409,12 +409,12 @@ export class PageObject {
async selectChatMode(mode: "build" | "ask" | "agent" | "local-agent") {
await this.page.getByTestId("chat-mode-selector").click();
// local-agent appears as "Agent v2 (experimental)" in the UI
// local-agent appears as "Agent v2" in the UI
const optionName =
mode === "local-agent"
? "Agent v2 (experimental)"
? "Agent v2"
: mode === "agent"
? "Build with MCP (experimental)"
? "Build with MCP"
: mode;
await this.page
.getByRole("option", {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论