test: fix bug of test case

This commit is contained in:
JimmFly 2023-01-03 16:40:59 +08:00 committed by DarkSky
parent 10087761c8
commit 8b827c2f37

View File

@ -54,6 +54,7 @@ test.describe('Add new page in quick search', () => {
await openQuickSearchByShortcut(page);
const addNewPage = page.locator('[data-testid=quickSearch-addNewPage]');
await addNewPage.click();
await page.waitForTimeout(200);
await assertTitleTexts(page, ['']);
});
@ -63,6 +64,7 @@ test.describe('Add new page in quick search', () => {
await page.keyboard.insertText('test123456');
const addNewPage = page.locator('[data-testid=quickSearch-addNewPage]');
await addNewPage.click();
await page.waitForTimeout(200);
await assertTitleTexts(page, ['test123456']);
});
});