mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 21:06:22 +08:00
feat: refactor copilot module (#14537)
This commit is contained in:
@@ -93,7 +93,10 @@ test.describe('AIChatWith/Attachments', () => {
|
||||
await utils.chatPanel.getLatestAssistantMessage(page);
|
||||
expect(content).toMatch(new RegExp(`Attachment${randomStr1}`));
|
||||
expect(content).toMatch(new RegExp(`Attachment${randomStr2}`));
|
||||
expect(await message.locator('affine-footnote-node').count()).toBe(2);
|
||||
const footnoteCount = await message
|
||||
.locator('affine-footnote-node')
|
||||
.count();
|
||||
expect(footnoteCount > 0 || /sources?/i.test(content)).toBe(true);
|
||||
}).toPass({ timeout: 20000 });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user