Browse Source

Fix e2e

pull/1297/head
Sebastian Stehle 3 months ago
parent
commit
0d396cffe6
  1. 4
      tools/e2e/tests/pages/rule.ts
  2. 2
      tools/e2e/tests/pages/settings.ts

4
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' });
}

2
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();
}
}

Loading…
Cancel
Save