New chat e2e (#314)

This commit is contained in:
Will Chen
2025-06-02 22:35:55 -07:00
committed by GitHub
parent 1dde72e776
commit a44a9783c1
10 changed files with 53 additions and 0 deletions

View File

@@ -163,6 +163,14 @@ class PageObject {
return this.page.getByRole("textbox", { name: "Ask Dyad to build..." });
}
clickNewChat({ index = 0 }: { index?: number } = {}) {
// There is two new chat buttons...
return this.page
.getByRole("button", { name: "New Chat" })
.nth(index)
.click();
}
async sendPrompt(prompt: string) {
await this.getChatInput().click();
await this.getChatInput().fill(prompt);