There was an error while loading. Please reload this page.
2 parents 222dba1 + 9a04b4b commit 5cc90abCopy full SHA for 5cc90ab
1 file changed
playwright/e2e/admin-settings.spec.ts
@@ -13,7 +13,8 @@ test('Admin Guests settings page renders without errors', async ({ adminPage })
13
14
await adminPage.goto('/settings/admin/guests')
15
16
- await expect(adminPage.getByRole('heading', { name: 'Guests', exact: true })).toBeVisible()
+ // Scope to our section: the framework also renders a hidden page <h1> with the section name.
17
+ await expect(adminPage.locator('#guest-settings').getByRole('heading', { name: 'Guests', exact: true })).toBeVisible()
18
await expect(adminPage.getByRole('checkbox', { name: /external storage/i })).toBeVisible()
19
20
expect(pageErrors, `uncaught page errors: ${pageErrors.join(' | ')}`).toEqual([])
0 commit comments