feat: use footnote for perplexity search results (#9851)

Support issue [BS-2475](https://linear.app/affine-design/issue/BS-2475).

![截屏2025-01-22 16.49.25.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/49febcdf-e403-4a2e-ba99-da36df34e08c.png)
This commit is contained in:
akumatus
2025-01-22 10:54:00 +00:00
parent f8a515e89a
commit 862a9d0bc4
5 changed files with 69 additions and 39 deletions

View File

@@ -415,7 +415,7 @@ test.describe('chat panel', () => {
});
expect(history[1].name).toBe('AFFiNE AI');
expect(
await page.locator('chat-panel affine-link').count()
await page.locator('chat-panel affine-footnote-node').count()
).toBeGreaterThan(0);
await clearChat(page);
@@ -429,7 +429,9 @@ test.describe('chat panel', () => {
content: 'What is the weather in Shanghai today?',
});
expect(history[1].name).toBe('AFFiNE AI');
expect(await page.locator('chat-panel affine-link').count()).toBe(0);
expect(await page.locator('chat-panel affine-footnote-node').count()).toBe(
0
);
});
test('can trigger inline ai input and action panel by clicking Start with AI button', async ({