In this video, we look at how to test multiple domains within your Cypress tests using the new origin and session APIs. docs: docs.cypress.i... docs.cypress.i...
I tried to use this feature clicking on a button which opens a new window to login. However, for my case the origin stays at old URL and does not change to newly opened window origin. Any workarounds for this?
New window is opened by attribute (well I always find attribute} doesn't remember name but value is "_blank". If you write code to ignore this attribute new tab shouldn't open. edit: the attribute is target="_blank"
This feature is going to be used a lot. Thanks cypress team!
Woohoo! 🎉 _(takes off shirt and jumps on top of the table)_
I waited for this feature for literal years, thanks for your work guys!
Great. We waited for it! 🙂
I tried to use this feature clicking on a button which opens a new window to login. However, for my case the origin stays at old URL and does not change to newly opened window origin. Any workarounds for this?
New window is opened by attribute (well I always find attribute} doesn't remember name but value is "_blank". If you write code to ignore this attribute new tab shouldn't open.
edit: the attribute is target="_blank"
please let us re-run only the failed tests while using the cypress UI instead of the whole suite 😭
Wonderful!
I get a waiting for page to load --> please can you advise
I'm facing a problem with cy.origin after the redirection to the url the left panel of cypress dissapear, any idea ?
I am experiencing the same.. Did you managed to solve this? Thanks
@@BR-pz5qk I have upgraded cypress version, I'm working with the 12.5.0 now
It didn't work for me, I still have an issue in the set up of cy.session (which is cy.origin)
how to setup your auth0 file and how we get the link of auth0
Are this work with azure ad SSO? Cookies ?
Did you manage to get it to work?
👏👏
Better late than never!
Anyone got this working for testing facebook login ?? Does not work for me.
Top
replace experimentalSessionAndOrigin with experimentalOriginDependencies: true and follow the rest;)
you are the saviour man