From 4d687d8ab56c1d33da32bd43a9be5539021745cd Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Tue, 2 Apr 2024 14:19:36 +0300 Subject: [PATCH] fix e2e tests --- test/e2e/specs/site-editor/template-revert.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/specs/site-editor/template-revert.spec.js b/test/e2e/specs/site-editor/template-revert.spec.js index 712a51810da11..7b217f6e1f48b 100644 --- a/test/e2e/specs/site-editor/template-revert.spec.js +++ b/test/e2e/specs/site-editor/template-revert.spec.js @@ -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./' ); }