feat(i18n): fix i18n en-Us & en json english style (#7834)

This commit is contained in:
hwangdev97
2024-08-12 03:19:12 +00:00
parent a6169ab26a
commit 4ac9bd7790
5 changed files with 382 additions and 381 deletions

View File

@@ -64,7 +64,7 @@ test('create new tab', async ({ views }) => {
page = await views.getActive();
// page content should be at all docs page
await expect(page.getByTestId('virtualized-page-list')).toContainText(
'All Docs'
'All docs'
);
});

View File

@@ -80,7 +80,7 @@ test('Show collections items in sidebar', async ({ page }) => {
await collectionPage
.getByTestId('explorer-tree-node-operation-button')
.click();
const deletePage = page.getByText('Move to Trash');
const deletePage = page.getByText('Move to trash');
await deletePage.click();
await page.getByTestId('confirm-modal-confirm').click();
expect(await first.locator('[data-testid^="explorer-doc-"]').count()).toBe(0);

View File

@@ -370,16 +370,16 @@ test('can use cmdk to delete page and restore it', async ({ page }) => {
await getBlockSuiteEditorTitle(page).click();
await getBlockSuiteEditorTitle(page).fill('this is a new page to delete');
await openQuickSearchByShortcut(page);
await keyboardDownAndSelect(page, 'Move to Trash');
await keyboardDownAndSelect(page, 'Move to trash');
await page.getByTestId('confirm-delete-page').click();
const restoreButton = page.getByTestId('page-restore-button');
await expect(restoreButton).toBeVisible();
await page.waitForTimeout(100);
await openQuickSearchByShortcut(page);
expect(await commandsIsVisible(page, 'Move to Trash')).toBe(false);
expect(await commandsIsVisible(page, 'Move to trash')).toBe(false);
expect(await commandsIsVisible(page, 'Export to PDF')).toBe(false);
expect(await commandsIsVisible(page, 'Restore from Trash')).toBe(true);
await keyboardDownAndSelect(page, 'Restore from Trash');
expect(await commandsIsVisible(page, 'Restore from trash')).toBe(true);
await keyboardDownAndSelect(page, 'Restore from trash');
await expect(restoreButton).not.toBeVisible();
});