diff --git a/tools/e2e/tests/pages/rule.ts b/tools/e2e/tests/pages/rule.ts index ab4b557f0..4dda272e6 100644 --- a/tools/e2e/tests/pages/rule.ts +++ b/tools/e2e/tests/pages/rule.ts @@ -51,7 +51,7 @@ export class TriggerDialog { } public async add() { - await this.root.getByRole('button', { name: 'Add' }).click(); + await this.root.getByRole('button', { name: 'Add', exact: true }).click(); await this.root.waitFor({ state: 'detached' }); } @@ -73,7 +73,7 @@ export class StepDialog { } public async add() { - await this.root.getByRole('button', { name: 'Add' }).click(); + await this.root.getByRole('button', { name: 'Add', exact: true }).click(); await this.root.waitFor({ state: 'detached' }); } diff --git a/tools/e2e/tests/pages/settings.ts b/tools/e2e/tests/pages/settings.ts index 67bd9026b..51ac3f6a5 100644 --- a/tools/e2e/tests/pages/settings.ts +++ b/tools/e2e/tests/pages/settings.ts @@ -31,7 +31,7 @@ export class SettingsPage { } public async addPattern() { - await this.page.getByTestId('patterns').getByRole('button', { name: 'Add' }).click(); + await this.page.getByTestId('patterns').getByRole('button', { name: 'Add', exact: true }).click(); } }