Skip to content
Discussion options

You must be logged in to vote
  1. if its restoring the session, default blank page appears. How can i fix it?

The page is blank due to test isolation. The page is navigated to about:blank before each test so when your session is restored, your validation logic will always fail when verifying the route with cy.hash().should('eq', '/dashboard'). I suggested moving this check into the setup and using the validate func to verify the client is still authenticated with the backend.

  1. Yes you can use cy.session when test isolation is disabled.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sevdavc
Comment options

Answer selected by sevdavc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants