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

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...
上级 76054c6d
......@@ -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() {
......
import { test } from "./helpers/test_helper";
test("mention app (without pro)", async ({ po }) => {
await po.setUp({ autoApprove: true });
await po.importApp("minimal-with-ai-rules");
await po.goToAppsTab();
await po.sendPrompt("[dump] @app:minimal-with-ai-rules hi");
await po.snapshotServerDump("all-messages");
});
test("mention app (with pro)", async ({ po }) => {
await po.setUpDyadPro();
await po.importApp("minimal-with-ai-rules");
await po.goToAppsTab();
await po.sendPrompt("[dump] @app:minimal-with-ai-rules hi");
await po.snapshotServerDump("all-messages");
});
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论