Skip to content

Commit

Permalink
Customizing widgets test: click on widget test to unfocus editor and …
Browse files Browse the repository at this point in the history
…hide toolbar
  • Loading branch information
jsnajdr committed Feb 2, 2023
1 parent 207e16d commit 6a8a55f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/specs/widgets/customizing-widgets.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ test.describe( 'Widgets Customizer', () => {
await expect( firstParagraphBlock ).toBeFocused();

// Expect to focus on a already focused widget.
await paragraphWidget.click(); // noop click on the widget text to unfocus the editor and hide toolbar
await editParagraphWidget.click();
await expect( firstParagraphBlock ).toBeFocused();

Expand All @@ -272,6 +273,8 @@ test.describe( 'Widgets Customizer', () => {
const editHeadingWidget = headingWidget.locator(
'role=button[name="Click to edit this widget."i]'
);

await headingWidget.click(); // noop click on the widget text to unfocus the editor and hide toolbar
await editHeadingWidget.click();

const headingBlock = page.locator(
Expand Down

0 comments on commit 6a8a55f

Please sign in to comment.