refactor(core): rename explorer to navigation-panel (#11876)

This commit is contained in:
EYHN
2025-04-22 12:47:35 +08:00
committed by GitHub
parent f918573ba8
commit e4d6833296
104 changed files with 912 additions and 768 deletions
+2 -2
View File
@@ -110,7 +110,7 @@ test('can sync collections between different browser', async ({
page
);
await enableCloudWorkspace(page);
await page.getByTestId('explorer-bar-add-collection-button').click();
await page.getByTestId('navigation-panel-bar-add-collection-button').click();
const title = page.getByTestId('prompt-modal-input');
await title.isVisible();
await title.fill('test collection');
@@ -122,7 +122,7 @@ test('can sync collections between different browser', async ({
const page2 = await context.newPage();
await loginUser(page2, user);
await page2.goto(page.url());
const collections = page2.getByTestId('explorer-collections');
const collections = page2.getByTestId('navigation-panel-collections');
await collections.getByTestId('category-divider-collapse-button').click();
await expect(collections.getByText('test collection')).toBeVisible();
}
+6 -3
View File
@@ -109,21 +109,24 @@ test('should transform local favorites data', async ({ page }) => {
},
page
);
await page.getByTestId('explorer-bar-add-favorite-button').first().click();
await page
.getByTestId('navigation-panel-bar-add-favorite-button')
.first()
.click();
await clickPageModeButton(page);
await waitForEmptyEditor(page);
await getBlockSuiteEditorTitle(page).fill('this is a new fav page');
await expect(
page
.getByTestId('explorer-favorites')
.getByTestId('navigation-panel-favorites')
.locator('[draggable] >> text=this is a new fav page')
).toBeVisible();
await enableCloudWorkspace(page);
await expect(
page
.getByTestId('explorer-favorites')
.getByTestId('navigation-panel-favorites')
.locator('[draggable] >> text=this is a new fav page')
).toBeVisible();
});