mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-29 02:30:03 +00:00
test: fix e2e
This commit is contained in:
parent
794a13a76a
commit
c5e4f1beee
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue