mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor(core): hide emebedding status tip if completed (#12720)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added real-time embedding status tracking and progress messages to the AI chat composer, with automatic updates every 10 seconds. - **Refactor** - Simplified the embedding status tooltip to display a static message, removing dynamic status updates and hover-based refresh. - **Tests** - Enhanced embedding status tooltip test by creating sample documents and extending visibility timeout to 50 seconds. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -19,11 +19,18 @@ test.describe('AIBasic/Chat', () => {
|
||||
|
||||
test('should display embedding status tooltip', async ({
|
||||
loggedInPage: page,
|
||||
utils,
|
||||
}) => {
|
||||
await utils.editor.createDoc(page, 'Doc 1', 'doc1');
|
||||
await utils.editor.createDoc(page, 'Doc 2', 'doc2');
|
||||
await utils.editor.createDoc(page, 'Doc 3', 'doc3');
|
||||
await utils.editor.createDoc(page, 'Doc 4', 'doc4');
|
||||
await utils.editor.createDoc(page, 'Doc 5', 'doc5');
|
||||
|
||||
const check = await page.getByTestId(
|
||||
'ai-chat-embedding-status-tooltip-check'
|
||||
);
|
||||
await expect(check).toBeVisible();
|
||||
await expect(check).toBeVisible({ timeout: 50 * 1000 });
|
||||
|
||||
await check.hover();
|
||||
const tooltip = await page.getByTestId('ai-chat-embedding-status-tooltip');
|
||||
|
||||
Reference in New Issue
Block a user