Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Apr 2, 2024
1 parent 5ab1991 commit 4d687d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/specs/site-editor/template-revert.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ class TemplateRevertUtils {
await this.page.click(
'role=region[name="Editor settings"i] >> role=button[name="Actions"i]'
);
await this.page.click( 'role=menuitem[name=/Clear customizations/i]' );
await this.page.getByRole( 'button', { name: 'Clear' } ).click();
await this.page.click( 'role=menuitem[name=/Reset/i]' );
await this.page.getByRole( 'button', { name: 'Reset' } ).click();
await this.page.waitForSelector(
'role=button[name="Dismiss this notice"i] >> text=/ reverted./'
'role=button[name="Dismiss this notice"i] >> text=/ reset./'
);
}

Expand Down

0 comments on commit 4d687d8

Please sign in to comment.