Skip to content

Commit

Permalink
unskips focus test and adds await to a click event (#43507)
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu authored Aug 24, 2022
1 parent a55f880 commit 5adba04
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/e2e-tests/specs/editor/blocks/navigation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1682,10 +1682,7 @@ Expected mock function not to be called but it was called with: ["POST", "http:/
);
} );

// Skip reason: running it in interactive works but selecting and
// checking for focus consistently fails in the test.
// eslint-disable-next-line jest/no-disabled-tests
it.skip( 'should always focus select menu button after item selection', async () => {
it( 'should always focus select menu button after item selection', async () => {
// Create some navigation menus to work with.
await createNavigationMenu( {
title: 'First navigation',
Expand Down Expand Up @@ -1713,7 +1710,7 @@ Expected mock function not to be called but it was called with: ["POST", "http:/
const theOption = await page.waitForXPath(
"//button[@aria-checked='false'][contains(., 'First navigation')]"
);
theOption.click();
await theOption.click();

// Once the options are closed, does select menu button receive focus?
const selectMenuDropdown2 = await page.$(
Expand Down

0 comments on commit 5adba04

Please sign in to comment.