mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
test: update quick-search test case
This commit is contained in:
@@ -15,8 +15,8 @@ async function assertTitleTexts(page: Page, texts: string, isSearch?: boolean) {
|
||||
document.querySelector('.affine-default-page-block-title')
|
||||
);
|
||||
return titleElement.value;
|
||||
expect(actual).toEqual(texts);
|
||||
});
|
||||
expect(actual).toEqual(texts);
|
||||
} else {
|
||||
const actual = await page.title();
|
||||
expect(actual).toEqual(texts);
|
||||
@@ -78,7 +78,7 @@ test.describe('Add new page in quick search', () => {
|
||||
});
|
||||
|
||||
test.describe('Search and select', () => {
|
||||
test.skip('Create a new page and search this page', async ({ page }) => {
|
||||
test('Create a new page and search this page', async ({ page }) => {
|
||||
await newPage(page);
|
||||
await openQuickSearchByShortcut(page);
|
||||
await page.keyboard.insertText('test123456');
|
||||
|
||||
Reference in New Issue
Block a user