mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): ai history of new users is always loading, enable online search by default (#11741)
Close [AI-69](https://linear.app/affine-design/issue/AI-69).
This commit is contained in:
@@ -9,6 +9,12 @@ test.describe('AIBasic/Authority', () => {
|
||||
await utils.chatPanel.openChatPanel(page);
|
||||
});
|
||||
|
||||
test('should show messages placeholder when no login', async ({ page }) => {
|
||||
await expect(
|
||||
page.getByTestId('chat-panel-messages-placeholder')
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
test('should show error & login button when no login', async ({
|
||||
page,
|
||||
utils,
|
||||
|
||||
@@ -33,6 +33,9 @@ export class ChatPanelUtils {
|
||||
}
|
||||
await page.getByTestId('sidebar-tab-chat').click();
|
||||
await expect(page.getByTestId('sidebar-tab-content-chat')).toBeVisible();
|
||||
// TODO: remove this
|
||||
// after network search is disabled by default
|
||||
await this.disableNetworkSearch(page);
|
||||
}
|
||||
|
||||
public static async typeChat(page: Page, content: string) {
|
||||
@@ -48,7 +51,6 @@ export class ChatPanelUtils {
|
||||
}
|
||||
|
||||
public static async makeChat(page: Page, content: string) {
|
||||
await this.openChatPanel(page);
|
||||
await this.typeChat(page, content);
|
||||
await page.keyboard.press('Enter');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user