Skip to content

Commit

Permalink
CONSOLE-3740: follow-on fixes and cleanup for Cypress upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamilto committed Oct 17, 2023
1 parent 1083040 commit 897e9ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions frontend/packages/integration-tests-cypress/support/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ Cypress.Commands.add(
}
});
},
{ cacheAcrossSpecs: true },
{
cacheAcrossSpecs: true,
validate() {
// If unable to visit the baseURL, login has failed, and the session will be re-created.
cy.visit(Cypress.config('baseUrl'));
},
},
);
cy.visit('/'); // visits baseUrl which is set in plugins/index.js
},
);
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('PollConsoleUpdates Test', () => {
cy.wait(`@${CHECK_UPDATES_ALIAS}`, WAIT_OPTIONS);
cy.intercept(PLUGIN_MANIFEST_URL2, { forceNetworkError: true }).as(CHECK_MANIFEST_ALIAS2);
cy.wait(`@${CHECK_MANIFEST_ALIAS2}`, WAIT_OPTIONS);
// cy.wait(`@${CHECK_MANIFEST_ALIAS2}`, WAIT_OPTIONS).should('have.property', 'error');
cy.wait(`@${CHECK_MANIFEST_ALIAS2}`, WAIT_OPTIONS).should('have.property', 'error');
cy.byTestID('loading-indicator').should('not.exist');
cy.get(refreshWebConsoleLink).should('not.exist');
cy.intercept(PLUGIN_MANIFEST_URL2, PLUGIN_MANIFEST_DEFAULT2).as(CHECK_MANIFEST_ALIAS2);
Expand Down

0 comments on commit 897e9ca

Please sign in to comment.