close
Skip to content

E2E: add site and widget editor supports for ensureSidebarOpened#45480

Merged
Mamaduka merged 2 commits intoWordPress:trunkfrom
dinhtungdu:update/ensureSidebarOpened-site-editor-supports
Nov 3, 2022
Merged

E2E: add site and widget editor supports for ensureSidebarOpened#45480
Mamaduka merged 2 commits intoWordPress:trunkfrom
dinhtungdu:update/ensureSidebarOpened-site-editor-supports

Conversation

@dinhtungdu
Copy link
Member

What?

This PR add Site and Widgets Editor supports for the ensureSidebarOpened utility.

Why?

Currently, ensureSidebarOpened only supports the Blocks Editor. To test against Site or Widgets Editors, developers have to create custom utitlity

How?

This PR combines selectors of the setting button in Widgets and Site Editor (edit mode is supported) to make the utility works with all three editors.

Testing Instructions

N/a. Ensure E2E tests are passing. We're using a similar utility for WooCommerce Blocks here.

@codesandbox
Copy link

codesandbox bot commented Nov 2, 2022

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@Mamaduka Mamaduka added [Type] Enhancement A suggestion for improvement. [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Tool] E2E Test Utils /packages/e2e-test-utils labels Nov 3, 2022
Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are passing on CI, and I re-run them one more. I think this looks good to merge 👍

Thank you, @dinhtungdu!

@Mamaduka Mamaduka merged commit 5fce0a8 into WordPress:trunk Nov 3, 2022
@github-actions github-actions bot added this to the Gutenberg 14.6 milestone Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Tool] E2E Test Utils /packages/e2e-test-utils [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants