Skip to content

Commit

Permalink
Playwright Utils: Fix 'clickBlockOptionsMenuItem' helper (#55923)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Nov 7, 2023
1 parent a9f307b commit e94446a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import type { Editor } from './index';
export async function clickBlockOptionsMenuItem( this: Editor, label: string ) {
await this.clickBlockToolbarButton( 'Options' );
await this.page
.locator(
`role=menu[name="Options"i] >> role=menuitem[name="${ label }"i]`
)
.getByRole( 'menu', { name: 'Options' } )
.getByRole( 'menuitem', { name: label } )
.click();
}

1 comment on commit e94446a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in e94446a.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6784888520
📝 Reported issues:

Please sign in to comment.