-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure AD B2C flows break when running in cypress #27528
Comments
Have you looked into the cert errors being shown in the logs around downloading your fonts? |
I see no errors for the fonts. I do see that cypress cannot verify just about any certificate presented to it. That one is a perfectly valid microsoft certificate. |
My cypress crashes totally the browser. I have a webiste hosted on azure and we use B2C login. When I use different URLs for the angular app and the B2C login (my DEV environment), the login flow works with version 12 of cypress. When I use the same url for the app and for B2C, the application crashes. My Azure server uses front door from MS to keep the URL consistent for my ACC environment. I need to use the "close" button in the Cypress GUI to hard close the chrome/edge/firefox test browser, after a crash occured. Chrome dev tools: Application -> storage This was working in an older version of cypress (v10) but in v12 and v13, it not longer makes this redirect without problems. |
Here is an example of my login attempt for debugging:
│ Cypress: 13.6.2 │ |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
confirming this is fixed by #25806 (comment). If you are still interested are you able to double confirm @mattiasclaesson? |
Current behavior
Have not been able to pinpoint why there are issues running Azure B2C flows in cypress.
For some flows it just fails, one theory would be that there is a issue with cookies.
HAR file of from within cypress:
chrome_cypress_not_working_lynkcoprod.b2clogin.com.txt
Desired behavior
The flows should work when running them thru cypress.
Har file of a working run in chrome:
chrome_working_lynkcodevelop.b2clogin.com.txt
Test code to reproduce
Cypress Version
12.17.3
Node version
v14.18.1
Operating System
windows 10
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: