mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
refactor(core): indexer & embedding -> embedding (#12387)
### TL;DR refactor: rename settings, indexer embedding -> embedding <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Unified naming in workspace settings from "Indexer & Embedding" to "Embedding" for improved clarity. - Updated sidebar labels, tab keys, and test IDs to reflect the new naming convention. - Streamlined the layout and organization of the embedding settings interface for a more consistent user experience. - Simplified the export and component structure for embedding settings. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -4,11 +4,9 @@ const WORKSPACE_EMBEDDING_SWITCH_TEST_ID = 'workspace-embedding-setting-switch';
|
||||
|
||||
export class SettingsPanelUtils {
|
||||
public static async openSettingsPanel(page: Page) {
|
||||
if (
|
||||
await page.getByTestId('workspace-setting:indexer-embedding').isHidden()
|
||||
) {
|
||||
if (await page.getByTestId('workspace-setting:embedding').isHidden()) {
|
||||
await page.getByTestId('slider-bar-workspace-setting-button').click();
|
||||
await page.getByTestId('workspace-setting:indexer-embedding').click();
|
||||
await page.getByTestId('workspace-setting:embedding').click();
|
||||
await page.getByTestId('workspace-embedding-setting-wrapper').waitFor({
|
||||
state: 'visible',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user