mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(editor): add start-with-ai button for empty doc (#9836)
Close [BS-2391](https://linear.app/affine-design/issue/BS-2391/bs-ai-toolbar-空状态下添加-actions-列表) https://github.com/user-attachments/assets/cbded517-2d3d-4a75-b144-644e2b03f68a
This commit is contained in:
@@ -431,6 +431,15 @@ test.describe('chat panel', () => {
|
||||
expect(history[1].name).toBe('AFFiNE AI');
|
||||
expect(await page.locator('chat-panel affine-link').count()).toBe(0);
|
||||
});
|
||||
|
||||
test('can trigger inline ai input and action panel by clicking Start with AI button', async ({
|
||||
page,
|
||||
}) => {
|
||||
await clickNewPageButton(page);
|
||||
await page.getByTestId('start-with-ai-badge').click();
|
||||
await expect(page.locator('affine-ai-panel-widget')).toBeVisible();
|
||||
await expect(page.locator('ask-ai-panel')).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('chat with block', () => {
|
||||
|
||||
Reference in New Issue
Block a user