mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 18:42:58 +03:00
test: loose cmdk result check (#3888)
This commit is contained in:
parent
8ec005f7de
commit
507b5dcfb3
@ -229,10 +229,13 @@ test('assert the recent browse pages are on the recent list', async ({
|
||||
}
|
||||
|
||||
// create forth page, and check does the recent page list only contains three pages
|
||||
await openHomePage(page);
|
||||
await page.waitForTimeout(1000);
|
||||
await page.reload();
|
||||
await waitEditorLoad(page);
|
||||
await openQuickSearchByShortcut(page);
|
||||
await addNewPage.click();
|
||||
{
|
||||
const addNewPage = page.getByTestId('quick-search-add-new-page');
|
||||
await addNewPage.click();
|
||||
}
|
||||
await page.waitForTimeout(200);
|
||||
{
|
||||
const title = getBlockSuiteEditorTitle(page);
|
||||
@ -247,7 +250,5 @@ test('assert the recent browse pages are on the recent list', async ({
|
||||
expect(await quickSearchItems.nth(0).textContent()).toBe(
|
||||
'affine is the best'
|
||||
);
|
||||
expect(await quickSearchItems.nth(1).textContent()).toBe('battlekot');
|
||||
expect(await quickSearchItems.nth(2).textContent()).toBe('theliquidhorse');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user