mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
refactor(core): open embedding settings when click check-status button (#12772)
> CLOSE BS-3582 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a "Check status" button in the AI chat interface that opens the embedding settings panel for improved user access. - **Refactor** - Simplified the embedding status tooltip to display static information and a direct link to settings, removing dynamic progress updates. - Integrated workspace dialog service across AI chat components for consistent dialog management. - **Tests** - Updated end-to-end tests to verify that clicking the "Check status" button opens the embedding settings panel. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -17,7 +17,7 @@ test.describe('AIBasic/Chat', () => {
|
||||
await expect(page.getByTestId('ai-onboarding')).toBeVisible();
|
||||
});
|
||||
|
||||
test('should display embedding status tooltip', async ({
|
||||
test('should open embedding settings when clicking check status button', async ({
|
||||
loggedInPage: page,
|
||||
utils,
|
||||
}) => {
|
||||
@@ -32,12 +32,8 @@ test.describe('AIBasic/Chat', () => {
|
||||
);
|
||||
await expect(check).toBeVisible({ timeout: 50 * 1000 });
|
||||
|
||||
await check.hover();
|
||||
const tooltip = await page.getByTestId('ai-chat-embedding-status-tooltip');
|
||||
await expect(tooltip).toBeVisible();
|
||||
await expect(tooltip).toHaveText(
|
||||
/Results will improve after embedding|Embedding finished/
|
||||
);
|
||||
await check.click();
|
||||
await expect(page.getByTestId('workspace-setting:embedding')).toBeVisible();
|
||||
});
|
||||
|
||||
test(`should send message and receive AI response:
|
||||
|
||||
Reference in New Issue
Block a user