From 9a04b4b197c627808fe0bd630404cd5c111cc987 Mon Sep 17 00:00:00 2001 From: ernolf Date: Thu, 30 Jul 2026 02:36:31 +0200 Subject: [PATCH] fix(tests): scope admin settings heading locator to the guests section Assisted-by: ClaudeCode:claude-opus-4-8 Signed-off-by: ernolf --- playwright/e2e/admin-settings.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright/e2e/admin-settings.spec.ts b/playwright/e2e/admin-settings.spec.ts index 95279556..2106b5ac 100644 --- a/playwright/e2e/admin-settings.spec.ts +++ b/playwright/e2e/admin-settings.spec.ts @@ -13,7 +13,8 @@ test('Admin Guests settings page renders without errors', async ({ adminPage }) await adminPage.goto('/settings/admin/guests') - await expect(adminPage.getByRole('heading', { name: 'Guests', exact: true })).toBeVisible() + // Scope to our section: the framework also renders a hidden page

with the section name. + await expect(adminPage.locator('#guest-settings').getByRole('heading', { name: 'Guests', exact: true })).toBeVisible() await expect(adminPage.getByRole('checkbox', { name: /external storage/i })).toBeVisible() expect(pageErrors, `uncaught page errors: ${pageErrors.join(' | ')}`).toEqual([])