Skip to content

Commit 97f3809

Browse files
committed
fix: Correct operator sidebar navigation
- Uses cy.clickNavLink command instead of direct nav interaction - Supports both 'Ecosystem' (4.20) and 'Operators' (4.19) tab names
1 parent bf09741 commit 97f3809

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/cypress/support/commands.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,11 @@ Cypress.Commands.add('beforeBlockCOO', (MCP: { namespace: string, operatorName:
498498
cy.log(`Observability-operator pod is now running in namespace: ${MCP.namespace}`);
499499
});
500500

501-
nav.sidenav.clickNavLink(['Ecosystem', 'Installed Operators']);
501+
cy.get('#page-sidebar').then(($sidebar) => {
502+
const section = $sidebar.text().includes('Ecosystem') ? 'Ecosystem' : 'Operators';
503+
cy.clickNavLink([section, 'Installed Operators']);
504+
});
505+
502506
cy.byTestID('name-filter-input').should('be.visible').type('Cluster Observability{enter}');
503507
cy.get('[data-test="status-text"]', { timeout: installTimeoutMilliseconds }).eq(0).should('contain.text', 'Succeeded', { timeout: installTimeoutMilliseconds });
504508

0 commit comments

Comments
 (0)