mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user