test: fix e2e

This commit is contained in:
Johannes Millan 2025-12-05 12:26:08 +01:00
parent 794a13a76a
commit c5e4f1beee

View file

@ -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,