Skip to content

Commit e15c43a

Browse files
Merge pull request #505 from DavidRajnoha/fix-cypress-commands-coo-before-clicknavlink
NO-JIRA: test: Fix operator sidebar navigation
2 parents 9b64565 + 97f3809 commit e15c43a

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)