From 2f1eafeb79cf29aed9f8c52bc483ea8a9d2d1eb1 Mon Sep 17 00:00:00 2001 From: Richard R Date: Thu, 28 May 2026 22:26:49 -0600 Subject: [PATCH] test(e2e): scope settings Documents tab selector to modal --- tests/helpers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/helpers.ts b/tests/helpers.ts index dc0e2f2..2bdec91 100644 --- a/tests/helpers.ts +++ b/tests/helpers.ts @@ -431,7 +431,9 @@ export async function deleteDocumentByName(page: Page, fileName: string) { // Open Settings modal and navigate to Documents section export async function openSettingsDocumentsTab(page: Page) { await page.getByRole('button', { name: 'Settings' }).click(); - await page.getByRole('button', { name: 'Documents' }).click(); + const settingsDialog = page.locator('[data-testid="settings-modal"]'); + await expect(settingsDialog).toBeVisible({ timeout: 10000 }); + await settingsDialog.getByRole('button', { name: /^Documents$/ }).click(); } // Delete all local documents through Settings and close dialogs