Skip to content

Commit

Permalink
Fix back button aria name (#38195)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Jan 25, 2022
1 parent 40971df commit b54d4d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/e2e-tests/specs/widgets/customizing-widgets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ describe( 'Widgets Customizer', () => {

const backButton = await find( {
role: 'button',
name: 'Back',
name: /Back/,
focused: true,
} );
await expect( backButton ).toHaveFocus();
Expand Down Expand Up @@ -341,7 +341,7 @@ describe( 'Widgets Customizer', () => {
// Back to the widget areas panel.
const backButton = await find( {
role: 'button',
name: 'Back',
name: /Back/,
} );
await backButton.click();

Expand Down Expand Up @@ -377,7 +377,7 @@ describe( 'Widgets Customizer', () => {
await page.keyboard.type( 'First Heading' );

// Navigate back to the parent panel.
const backButton = await find( { role: 'button', name: 'Back' } );
const backButton = await find( { role: 'button', name: /Back/ } );
await backButton.click();

await waitForPreviewIframe();
Expand Down

0 comments on commit b54d4d1

Please sign in to comment.