fix(core): ask ai loses user selected context (#11767)

Close [AI-72](https://linear.app/affine-design/issue/AI-72)
This commit is contained in:
akumatus
2025-04-17 09:05:44 +00:00
parent d6287fd7b0
commit e577bb7aa9
4 changed files with 76 additions and 17 deletions
@@ -38,6 +38,13 @@ export class ChatPanelUtils {
await this.disableNetworkSearch(page);
}
public static async closeChatPanel(page: Page) {
await page.getByTestId('right-sidebar-toggle').click({
delay: 200,
});
await expect(page.getByTestId('sidebar-tab-content-chat')).toBeHidden();
}
public static async typeChat(page: Page, content: string) {
await page.getByTestId('chat-panel-input').focus();
await page.keyboard.type(content);