You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm trying to access an internal website to write tests for. Normally when you access the site, you get redirected to login.microsoftonline.com and need to login with your username. Then you will get redirected to the initial page.
In Cypress using Chrome, I get redirected to the MS page, enter in my username, click Submit, and then get taken to a white page(nothing loads).
In Cypress in Edge, I don't get redirected to the MS page, and instead just actually go to the internal website. I guess it automatically signed me in(not sure how). Same thing happens with Electron as well.
Has anyone else experienced this before? It seems like ONLY for chrome does it take me to the MS Sign in page, and even when i type in my username and submit, nothing loads.
I'm not sure if there's some setting I'm missing that I only need to initialize or set for Chrome.
My Cypress.config file looks like this:
`const { defineConfig } = require("cypress");
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm trying to access an internal website to write tests for. Normally when you access the site, you get redirected to login.microsoftonline.com and need to login with your username. Then you will get redirected to the initial page.
In Cypress using Chrome, I get redirected to the MS page, enter in my username, click Submit, and then get taken to a white page(nothing loads).
In Cypress in Edge, I don't get redirected to the MS page, and instead just actually go to the internal website. I guess it automatically signed me in(not sure how). Same thing happens with Electron as well.
Has anyone else experienced this before? It seems like ONLY for chrome does it take me to the MS Sign in page, and even when i type in my username and submit, nothing loads.
I'm not sure if there's some setting I'm missing that I only need to initialize or set for Chrome.
My Cypress.config file looks like this:
`const { defineConfig } = require("cypress");
module.exports = defineConfig({
e2e: {
experimentalSessionAndOrigin: true,
experimentalModifyObstructiveThirdPartyCode: true,
setupNodeEvents(on, config) {
// implement node event listeners here
}
},
chromeWebSecurity: false
});`
Beta Was this translation helpful? Give feedback.
All reactions