From 9d1bdbf88f506c7cff0c457b146df793aea79016 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 23 Dec 2022 15:05:59 +0100 Subject: [PATCH] Fix e2e tests --- .../src/site-editor/toggle-canvas-mode.js | 2 +- packages/e2e-test-utils/src/site-editor.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/e2e-test-utils-playwright/src/site-editor/toggle-canvas-mode.js b/packages/e2e-test-utils-playwright/src/site-editor/toggle-canvas-mode.js index c30a7b09ded992..01340eb085d889 100644 --- a/packages/e2e-test-utils-playwright/src/site-editor/toggle-canvas-mode.js +++ b/packages/e2e-test-utils-playwright/src/site-editor/toggle-canvas-mode.js @@ -4,5 +4,5 @@ * @this {import('.').SiteEditor} */ export async function enterEditMode() { - await this.page.click( '.edit-site-layout__edit-button' ); + await this.page.click( '.edit-site-site-hub__edit-button' ); } diff --git a/packages/e2e-test-utils/src/site-editor.js b/packages/e2e-test-utils/src/site-editor.js index 674152746fa9bf..425931ccf9cbca 100644 --- a/packages/e2e-test-utils/src/site-editor.js +++ b/packages/e2e-test-utils/src/site-editor.js @@ -166,11 +166,11 @@ export async function openPreviousGlobalStylesPanel() { * Enters edit mode. */ export async function enterEditMode() { - const editSiteToggle = await page.$( '.edit-site-layout__edit-button' ); + const editSiteToggle = await page.$( '.edit-site-site-hub__edit-button' ); // This check is necessary for the performance tests in old branches // where the site editor toggle was not implemented yet. if ( ! editSiteToggle ) { return; } - await page.click( '.edit-site-layout__edit-button' ); + await page.click( '.edit-site-site-hub__edit-button' ); }