Skip to content

Commit

Permalink
Adjust test.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Mar 7, 2024
1 parent cb7ffcb commit b0ff43e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/e2e/specs/site-editor/navigation-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,20 @@ test.describe( 'Editing Navigation Menus', () => {
await expect( listView ).toBeVisible();

const navBlockNode = listView.getByRole( 'link', {
name: 'Navigation (locked)',
name: 'Navigation',
exact: true,
} );

// The Navigation block should be present and locked.
// The Navigation block should be present.
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./ );

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

0 comments on commit b0ff43e

Please sign in to comment.