mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 02:56:23 +08:00
test: add test case for quick search
This commit is contained in:
@@ -130,6 +130,7 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
|
||||
setLoading={setLoading}
|
||||
onClose={handleClose}
|
||||
setPublishWorkspaceName={setPublishWorkspaceName}
|
||||
data-testid="publishedSearchResults"
|
||||
/>
|
||||
)}
|
||||
</StyledContent>
|
||||
|
||||
@@ -106,3 +106,11 @@ test.describe('Disable search on 404 page', () => {
|
||||
await expect(quickSearch).toBeVisible({ visible: false });
|
||||
});
|
||||
});
|
||||
test.describe('Open quick search on the published page', () => {
|
||||
test('Open quick search on local page', async ({ page }) => {
|
||||
await newPage(page);
|
||||
await openQuickSearchByShortcut(page);
|
||||
const publishedSearchResults = page.locator('[publishedSearchResults]');
|
||||
await expect(publishedSearchResults).toBeVisible({ visible: false });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user