Skip to content

Commit

Permalink
Fix gallery spec (#2289)
Browse files Browse the repository at this point in the history
Fix gallery spec

- Panel button was not found

Co-authored-by: Dan Tovbein <[email protected]>
  • Loading branch information
GP-Dan-Tovbein and dantovbein authored May 17, 2024
1 parent a8877c2 commit 7476fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/tools/lib/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 7476fe5

Please sign in to comment.