chore: replace ambiguous "page" with "doc" (#5761)

close TOV-532
This commit is contained in:
JimmFly
2024-02-21 12:47:17 +00:00
parent 85be45a79c
commit c353b0d30f
8 changed files with 88 additions and 89 deletions

View File

@@ -214,7 +214,7 @@ test('select two pages and delete', async ({ page }) => {
await page.locator('[data-testid="list-toolbar-delete"]').click();
// the confirm dialog should appear
await expect(page.getByText('Delete 2 pages?')).toBeVisible();
await expect(page.getByText('Delete 2 docs?')).toBeVisible();
await page.getByRole('button', { name: 'Delete' }).click();

View File

@@ -135,7 +135,7 @@ test('Create a new page without keyword', async ({ page }) => {
await waitForEditorLoad(page);
await clickNewPageButton(page);
await openQuickSearchByShortcut(page);
const addNewPage = page.locator('[cmdk-item] >> text=New Page');
const addNewPage = page.locator('[cmdk-item] >> text=New Doc');
await addNewPage.click();
await page.waitForTimeout(300);
await assertTitle(page, '');
@@ -147,9 +147,7 @@ test('Create a new page with keyword', async ({ page }) => {
await clickNewPageButton(page);
await openQuickSearchByShortcut(page);
await insertInputText(page, '"test123456"');
const addNewPage = page.locator(
'[cmdk-item] >> text=New ""test123456"" Page'
);
const addNewPage = page.locator('[cmdk-item] >> text=New ""test123456"" Doc');
await addNewPage.click();
await page.waitForTimeout(300);
await assertTitle(page, '"test123456"');
@@ -171,7 +169,7 @@ test('Create a new page and search this page', async ({ page }) => {
// input title and create new page
await insertInputText(page, 'test123456');
await page.waitForTimeout(300);
const addNewPage = page.locator('[cmdk-item] >> text=New "test123456" Page');
const addNewPage = page.locator('[cmdk-item] >> text=New "test123456" Doc');
await addNewPage.click();
await page.waitForTimeout(300);
@@ -240,7 +238,7 @@ test('Focus title after creating a new page', async ({ page }) => {
await waitForEditorLoad(page);
await clickNewPageButton(page);
await openQuickSearchByShortcut(page);
const addNewPage = page.locator('[cmdk-item] >> text=New Page');
const addNewPage = page.locator('[cmdk-item] >> text=New Doc');
await addNewPage.click();
await titleIsFocused(page);
});
@@ -272,7 +270,7 @@ test('assert the recent browse pages are on the recent list', async ({
// create second page
await openQuickSearchByShortcut(page);
const addNewPage = page.locator('[cmdk-item] >> text=New Page');
const addNewPage = page.locator('[cmdk-item] >> text=New Doc');
await addNewPage.click();
await waitForEditorLoad(page);
{
@@ -310,7 +308,7 @@ test('assert the recent browse pages are on the recent list', async ({
await waitForEditorLoad(page);
await openQuickSearchByShortcut(page);
{
const addNewPage = page.locator('[cmdk-item] >> text=New Page');
const addNewPage = page.locator('[cmdk-item] >> text=New Doc');
await addNewPage.click();
}
await waitForEditorLoad(page);