Skip to content

Commit

Permalink
Add fake visit for saml test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Nov 23, 2023
1 parent 034e1f3 commit 1ecc116
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cypress/e2e/saml/saml_auth_test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ import samlUserRoleMapping from '../../fixtures/saml/samlUserRoleMappiing.json'

before(() => {
cy.intercept('https://localhost:9200');

//Fake visit() before request: https://github.com/cypress-io/cypress/issues/25397#issuecomment-1402556488
cy.visit('http://localhost:5601');

cy.createRoleMapping(ALL_ACCESS_ROLE, samlUserRoleMapping);
cy.clearCookies();
cy.clearLocalStorage();
Expand Down

0 comments on commit 1ecc116

Please sign in to comment.