test(e2e): dismiss blocking overlays after folder reload

This commit is contained in:
Richard R 2026-05-28 23:13:34 -06:00
parent 8566206911
commit c5b39f5312
2 changed files with 9 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import {
dispatchHtml5DragAndDrop, dispatchHtml5DragAndDrop,
expectDocumentListed, expectDocumentListed,
expectNoDocumentLink, expectNoDocumentLink,
dismissBlockingModals,
} from './helpers'; } from './helpers';
test.describe('Document folders and hint persistence', () => { test.describe('Document folders and hint persistence', () => {
@ -62,6 +63,7 @@ test.describe('Document folders and hint persistence', () => {
// Reload and verify persisted folder + membership // Reload and verify persisted folder + membership
await page.reload(); await page.reload();
await page.waitForLoadState('networkidle'); await page.waitForLoadState('networkidle');
await dismissBlockingModals(page);
const myFolderRowAfter = folderRow(page, 'My Folder'); const myFolderRowAfter = folderRow(page, 'My Folder');
await expect(myFolderRowAfter).toBeVisible(); await expect(myFolderRowAfter).toBeVisible();
await myFolderRowAfter.click(); await myFolderRowAfter.click();

View file

@ -177,6 +177,13 @@ async function dismissOnboardingModals(page: Page): Promise<void> {
} }
} }
/**
* Dismiss startup/settings overlays that can intermittently appear after reloads.
*/
export async function dismissBlockingModals(page: Page): Promise<void> {
await dismissOnboardingModals(page);
}
/** /**
* Wait for the play button to be clickable and click it * Wait for the play button to be clickable and click it
*/ */