From 7476fe5025b3559b8a4812fbc5cd5692eaf05074 Mon Sep 17 00:00:00 2001 From: Dan Tovbein Date: Fri, 17 May 2024 12:23:47 -0300 Subject: [PATCH] Fix gallery spec (#2289) Fix gallery spec - Panel button was not found Co-authored-by: Dan Tovbein --- tests/e2e/tools/lib/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/tools/lib/editor.js b/tests/e2e/tools/lib/editor.js index bf8209092e..40ffb73d0b 100644 --- a/tests/e2e/tools/lib/editor.js +++ b/tests/e2e/tools/lib/editor.js @@ -21,7 +21,7 @@ async function openComponentPanel({editor}, panelTitle) { await editor.openDocumentSettingsSidebar(); const editorSettings = await editor.canvas.getByRole('region', {name: 'Editor settings'}); - await editorSettings.locator('.edit-post-sidebar__panel-tab').first().click(); + await editorSettings.locator('.edit-post-sidebar__panel-tabs button').first().click(); const panelButton = await editorSettings.getByRole('button', {name: panelTitle, exact: true}); const panelExpanded = await panelButton.getAttribute('aria-expanded'); if (panelExpanded === 'false') {