diff --git a/packages/calypso-e2e/src/lib/components/full-side-editor-nav-sidebar-component.ts b/packages/calypso-e2e/src/lib/components/full-side-editor-nav-sidebar-component.ts index 5bbc0468b84c9..482de9eb4aa83 100644 --- a/packages/calypso-e2e/src/lib/components/full-side-editor-nav-sidebar-component.ts +++ b/packages/calypso-e2e/src/lib/components/full-side-editor-nav-sidebar-component.ts @@ -91,7 +91,10 @@ export class FullSiteEditorNavSidebarComponent { */ async clickNavButtonByExactText( text: string ): Promise< void > { const editorParent = await this.editor.parent(); - await editorParent.getByRole( 'button', { name: text, exact: true } ).click(); + await editorParent + .getByLabel( 'Navigation' ) + .getByRole( 'button', { name: text, exact: true } ) + .click(); } /**