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

Fix back button aria name in customizing widgets tests. #38195

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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