Allow referencing other apps (#692)

- [x] Update chat_stream_handlers
- [x] Update token handlers
- [x] Update HomeChatInput
- [x] update lexical chat input: do not allow referencing same app
(current app, or other already selected apps)
- [x] I don't think smart context will work on this...
- [x] Enter doesn't clear...
This commit is contained in:
Will Chen
2025-08-13 16:22:49 -07:00
committed by GitHub
parent 76054c6db7
commit a6dca76d29
16 changed files with 5755 additions and 3013 deletions

View File

@@ -645,7 +645,9 @@ export class PageObject {
}
getChatInput() {
return this.page.getByRole("textbox", { name: "Ask Dyad to build..." });
return this.page.locator(
'[data-lexical-editor="true"][aria-placeholder="Ask Dyad to build..."]',
);
}
clickNewChat({ index = 0 }: { index?: number } = {}) {
@@ -878,6 +880,7 @@ export class PageObject {
async goToAppsTab() {
await this.page.getByRole("link", { name: "Apps" }).click();
await expect(this.page.getByText("Build your dream app")).toBeVisible();
}
async goToChatTab() {