Skip to content

Commit

Permalink
Use new accessibility assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 7, 2024
1 parent 063f2dd commit a516c99
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/e2e/specs/site-editor/navigation-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ test.describe( 'Editing Navigation Menus', () => {
await expect( navBlockNode ).toBeVisible();

// The Navigation block description should contain the locked state information.
const navBlockNodeDescriptionId =
await navBlockNode.getAttribute( 'aria-describedby' );
await expect(
listView.locator( `id=${ navBlockNodeDescriptionId }` )
).toHaveText( /This block is locked./ );
await expect( navBlockNode ).toHaveAccessibleDescription(
/This block is locked./
);

// The block should have no options menu.
await expect(
Expand Down

0 comments on commit a516c99

Please sign in to comment.