test(core): embedding settings (#11554)

### TL;DR

tests: workspace embedding e2e

> CLOSE BS-3052

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
  - Introduced comprehensive end-to-end tests for workspace embedding settings, including toggling embedding, uploading and managing attachments, pagination, and ignoring documents.
  - Added utilities for automated interaction with the settings panel and document creation in tests.

- **Tests**
  - Implemented detailed scenarios to verify workspace embedding functionality and user interactions within the settings panel.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
yoyoyohamapi
2025-05-15 06:43:07 +00:00
parent 9fee8147cb
commit d00315e372
4 changed files with 497 additions and 1 deletions
@@ -4,6 +4,7 @@ import type { Page } from '@playwright/test';
import { ChatPanelUtils } from '../utils/chat-panel-utils';
import { EditorUtils } from '../utils/editor-utils';
import { SettingsPanelUtils } from '../utils/settings-panel-utils';
import { TestUtils } from '../utils/test-utils';
interface TestUtilsFixtures {
@@ -11,6 +12,7 @@ interface TestUtilsFixtures {
testUtils: TestUtils;
chatPanel: typeof ChatPanelUtils;
editor: typeof EditorUtils;
settings: typeof SettingsPanelUtils;
};
loggedInPage: Page;
}
@@ -22,6 +24,7 @@ export const test = base.extend<TestUtilsFixtures>({
testUtils,
chatPanel: ChatPanelUtils,
editor: EditorUtils,
settings: SettingsPanelUtils,
});
},
loggedInPage: async ({ browser }, use) => {