Fix MCP e2e test (#1980)

<!-- CURSOR_SUMMARY -->
> [!NOTE]
> <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
generating a summary for commit
c8f494513ae9b2fedda833aeda41ed660b584f16. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
This commit is contained in:
Will Chen
2025-12-17 22:15:50 -08:00
committed by GitHub
parent 423be75dd6
commit df785a8bd1

View File

@@ -341,7 +341,11 @@ export class PageObject {
async selectChatMode(mode: "build" | "ask" | "agent") { async selectChatMode(mode: "build" | "ask" | "agent") {
await this.page.getByTestId("chat-mode-selector").click(); await this.page.getByTestId("chat-mode-selector").click();
await this.page.getByRole("option", { name: mode }).click(); await this.page
.getByRole("option", {
name: mode === "agent" ? "Build with MCP (experimental)" : mode,
})
.click();
} }
async openContextFilesPicker() { async openContextFilesPicker() {