Skip to content

Commit

Permalink
Test Cases: Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshbhutkar committed Jan 9, 2025
1 parent 1273df0 commit 1706ef7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/blocks/navigation-list-view.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ test.describe( 'Navigation block - List view editing', () => {

await editor.openDocumentSettingsSidebar();

await page.getByLabel( 'Test Menu' ).click();
await page.getByLabel( 'Test Menu', { exact: true } ).click();

await page.keyboard.press( 'ArrowUp' );

Expand Down
9 changes: 8 additions & 1 deletion test/e2e/specs/site-editor/navigation-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ test.describe( 'Editing Navigation Menus', () => {
canvas: 'edit',
} );

// Wait for the toggle to be visible.
await expect(
page.locator(
'.editor-document-tools__document-overview-toggle'
)
).toBeVisible();

// Open List View.
await pageUtils.pressKeys( 'access+o' );

Expand All @@ -54,7 +61,7 @@ test.describe( 'Editing Navigation Menus', () => {
await expect( listView ).toBeVisible();

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

Expand Down

0 comments on commit 1706ef7

Please sign in to comment.