I am new to Cypress and JS. The app I am testing redirects to a stub IDP page if not logged in. The app is also behind basic auth. All I am doing in the test is
cy.visit("https://username:password@app_url.com")
This redirects me to the stub IDP page where I am clicking login button as
cy.contains('button', 'Log in').click(). This redirects back to the app home page.
However, upon redirect, it's prompting me to fill in basic auth again. Is there a way to pass basic auth headers that are remembered after the redirect?
The stub IDP is for SAML based SSO and it's too much work or I should say I lack knowledge to create a server request to obtain auth token. So looking for a simple work around for now.
