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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user