Skip to content

Commit

Permalink
Update assertion Autocomplete E2E tests (#48344)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Feb 23, 2023
1 parent 105625a commit ec09ddc
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => {
// Ensure `aria-owns` is part of the same document and ensure the
// selected option is equal to the active descendant.
await expect(
await editor.canvas
.locator( `#${ ariaOwns } [aria-selected="true"]` )
.getAttribute( 'id' )
).toBe( ariaActiveDescendant );
editor.canvas.locator( `#${ ariaOwns } [aria-selected="true"]` )
).toHaveAttribute( 'id', ariaActiveDescendant );
await page.keyboard.press( 'Enter' );
await page.keyboard.type( '.' );

Expand Down

1 comment on commit ec09ddc

@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 ec09ddc.
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/4250765882
📝 Reported issues:

Please sign in to comment.