From c5b39f5312cc2c0f5e27b14e9b34a8c905865ad4 Mon Sep 17 00:00:00 2001 From: Richard R Date: Thu, 28 May 2026 23:13:34 -0600 Subject: [PATCH] test(e2e): dismiss blocking overlays after folder reload --- tests/folders.spec.ts | 2 ++ tests/helpers.ts | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/tests/folders.spec.ts b/tests/folders.spec.ts index 7e36725..0b84411 100644 --- a/tests/folders.spec.ts +++ b/tests/folders.spec.ts @@ -7,6 +7,7 @@ import { dispatchHtml5DragAndDrop, expectDocumentListed, expectNoDocumentLink, + dismissBlockingModals, } from './helpers'; test.describe('Document folders and hint persistence', () => { @@ -62,6 +63,7 @@ test.describe('Document folders and hint persistence', () => { // Reload and verify persisted folder + membership await page.reload(); await page.waitForLoadState('networkidle'); + await dismissBlockingModals(page); const myFolderRowAfter = folderRow(page, 'My Folder'); await expect(myFolderRowAfter).toBeVisible(); await myFolderRowAfter.click(); diff --git a/tests/helpers.ts b/tests/helpers.ts index 2bdec91..7cae82a 100644 --- a/tests/helpers.ts +++ b/tests/helpers.ts @@ -177,6 +177,13 @@ async function dismissOnboardingModals(page: Page): Promise { } } +/** + * Dismiss startup/settings overlays that can intermittently appear after reloads. + */ +export async function dismissBlockingModals(page: Page): Promise { + await dismissOnboardingModals(page); +} + /** * Wait for the play button to be clickable and click it */