DEV Community

Discussion on: Cypress Testing Tutorial Series for Beginners

Collapse
 
maureento8888 profile image
Maureen T'O

Great post that goes over the pros and cons of Cypress ☺️ I’ve used Cypress before for e2e testing and I gotta say, I’d take it over Selenium (another platform I considered) even despite its cons. The same-origin thing definitely is something for them to look into - what’s your take on that? 🧐 Is this a normal downfall for other frameworks or just Cypress?

Collapse
 
dilpreetjohal profile image
Dilpreet Johal

Thanks Maureen. So the same-origin issue is specific to Cypress as the tests run within your browser and the browser adheres to a strict same-origin policy. This becomes an issue when you need to access iframes within your application for scenarios such as accessing a YouTube player, payment IFrames (stripe, PayPal, etc), or embedded logins from Auth0.
On a positive note, they are investigating a fix for this, you can check out the GitHub issue here if you are interested - github.com/cypress-io/cypress/issu...

Collapse
 
maureento8888 profile image
Maureen T'O

Ohhhhh that makes a lot of sense 😯 Thank you for clarifying it so well and I’ll definitely look into it! 🙌🏼