# End-to-End Testing with Cypress and Auth0

**URL:** <https://community.auth0.com/t/end-to-end-testing-with-cypress-and-auth0/19082>\
**Category:** Get Help\
**Created:** [December 14, 2018, 1:35pm UTC](https://community.auth0.com/t/end-to-end-testing-with-cypress-and-auth0/19082 "2018-12-14T13:35:04Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![corruptedmonk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/corruptedmonk/32/15605_2.png) [@corruptedmonk](https://community.auth0.com/u/corruptedmonk)\
**Post date:** [September 12, 2019, 3:02am UTC](https://community.auth0.com/t/end-to-end-testing-with-cypress-and-auth0/19082/19 "2019-09-12T03:02:20Z")

</div>

For now, this is the workaround solution of me.

1. Disable chrome security in Cypress config.
2. Login through the auth0 page (we will redirect to log-in page and log out due to the fact that I cannot generate the random state in the new auth0 package)

Note: If you’re not custom login page in auth0, use the classic page in Universal Login. I found that the new UI of Auth0 login page has a lot of security enhance that prevents us render auth0 in an iframe.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/b/ab402b9af474336cb4b03294fae437e66f68968d.png)  
Then, Go to Auth0 → Tenant Setting → Advanced → Enable **Clickjacking Protection** to allow auth0 load in an iframe.  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/f/7f070d83cf0dd04ba7550c1226781f2dd001b1ff.png)

Ok, that all the step that I did to make it work. Hope this help you

---

_[View the full topic](https://community.auth0.com/t/end-to-end-testing-with-cypress-and-auth0/19082)._
