Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus submenu button when clicked #55198

Merged
merged 12 commits into from
Oct 18, 2023
Prev Previous commit
Use body click instead for consistency across environments
  • Loading branch information
jeryj committed Oct 18, 2023
commit 6d719ba247abffc888b278faa1c5ec246b57b55b
Original file line number Diff line number Diff line change
@@ -332,8 +332,8 @@ test.describe( 'Navigation block - Frontend interactivity', () => {
await expect( firstLevelElement ).toBeVisible();
await expect( secondLevelElement ).toBeHidden();

// Close all the menus with click on a non-body element outside the menu
await page.getByText( 'Just another Gutenberg site' ).click();
// Close the menu via click on the body
await page.click( 'body' );
await expect( firstLevelElement ).toBeHidden();

// Tests not covered: Tabbing to close menus