Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web/cypress/support/commands/auth-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ declare global {
}

Cypress.Commands.add('validateLogin', () => {
cy.visit('/');
cy.wait(2000);
cy.byTestID("username", {timeout: 120000}).should('be.visible');
guidedTour.close();
Expand Down
11 changes: 8 additions & 3 deletions web/cypress/support/commands/operator-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,16 @@ const operatorUtils = {
`sleep 15 && oc wait --for=condition=Ready pods --selector=app.kubernetes.io/name=monitoring-plugin -n ${MP.namespace} --timeout=60s --kubeconfig ${Cypress.env('KUBECONFIG_PATH')}`,
{
timeout: readyTimeoutMilliseconds,
failOnNonZeroExit: true
failOnNonZeroExit: false
}
).then((result) => {
expect(result.code).to.eq(0);
cy.log(`Monitoring plugin pod is now running in namespace: ${MP.namespace}`);
if (result.code === 0) {
cy.log(`Monitoring plugin pod is now running in namespace: ${MP.namespace}`);
} else if (result.stderr.includes('no matching resources found')) {
cy.log(`No monitoring-plugin pods found in namespace ${MP.namespace} - this is expected on fresh clusters`);
} else {
throw new Error(`Failed to wait for monitoring-plugin pods: ${result.stderr}`);
}
});

cy.reload(true);
Expand Down