diff --git a/playwright/support/sections/NavigationSection.ts b/playwright/support/sections/NavigationSection.ts index 2b3c99ac0..07f28a49b 100644 --- a/playwright/support/sections/NavigationSection.ts +++ b/playwright/support/sections/NavigationSection.ts @@ -62,7 +62,7 @@ export class NavigationSection { public async openNewCollectiveDialog(): Promise { await this.openCollectiveSelector() - await this.page.getByRole('button', { name: 'New collective' }).click() + await this.page.getByRole('button', { name: 'New collective', exact: true }).click() await expect(this.page.getByRole('textbox', { name: 'Name of the collective' })).toBeVisible() } diff --git a/src/CollectivesApp.vue b/src/CollectivesApp.vue index cacf7eed6..f759e91e1 100644 --- a/src/CollectivesApp.vue +++ b/src/CollectivesApp.vue @@ -22,6 +22,8 @@ +