Skip to content

Commit

Permalink
test(admin): add missing intercept, now allow full offline testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricss committed Sep 10, 2024
1 parent 0e9beab commit 87f2fa9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/reva-admin-react/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ function auth({ url, token }: { url: string; token: string }) {
fixture: token,
});

cy.intercept("GET", "**/realms/reva/protocol/openid-connect/auth**", {
statusCode: 302,
headers: {
location: `${Cypress.config("baseUrl")}/silent-check-sso.html#error=login_required`,
},
});

cy.visit(url, {
onBeforeLoad(win) {
// We store a dummy but valid state in localStorage
Expand Down

0 comments on commit 87f2fa9

Please sign in to comment.