From c5e4f1beee48fb4d855271aab2ace775aee52e5b Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 5 Dec 2025 12:26:08 +0100 Subject: [PATCH] test: fix e2e --- e2e/tests/app-features/app-features.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/tests/app-features/app-features.spec.ts b/e2e/tests/app-features/app-features.spec.ts index 0281d7581e..a5e3d828ec 100644 --- a/e2e/tests/app-features/app-features.spec.ts +++ b/e2e/tests/app-features/app-features.spec.ts @@ -39,7 +39,10 @@ test.describe('App Features', () => { const featureElement = feature.locator(page); // elements on settings page - const appFeaturesSection = page.locator('collapsible', { hasText: 'App Features' }); + // Use .first() because there may be multiple "App Features" sections (global and project-specific) + const appFeaturesSection = page + .locator('collapsible', { hasText: 'App Features' }) + .first(); const featureSwitch = page.getByRole('switch', { name: feature.label, exact: true,