mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
test: add test case for 404 search
This commit is contained in:
@@ -94,3 +94,15 @@ test.describe('Search and select', () => {
|
||||
await assertTitleTexts(page, 'test123456', true);
|
||||
});
|
||||
});
|
||||
test.describe('Disable search on 404 page', () => {
|
||||
test('Navigate to the 404 page and try to open quick search', async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto('http://localhost:8080/404');
|
||||
const notFoundTip = page.locator('[data-testid=notFound]');
|
||||
await expect(notFoundTip).toBeVisible();
|
||||
await openQuickSearchByShortcut(page);
|
||||
const quickSearch = page.locator('[data-testid=quickSearch]');
|
||||
await expect(quickSearch).toBeVisible({ visible: false });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user