Support for multiple domains #26566
Unanswered
alexandersels
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
Lets start with some context! I'm trying to write Cypress test for a low-code application. The application is using two domains.
One domain is used to host the administrator part. All of the applications are created using drag and drop procedures here. The other domain is used to host a preview of the applications. This one is available for the customers as well.
We would like to write cypress tests to create an application and immediately test if the application is working correctly. To do this, we need to switch from one domain to another. It feels like I'm hitting the limitations of Cypress here.
To demonstrate what is going wrong, I've created to small .spec files:
In this case, the first test succeeds, but the second test doesn't. It seems like the page is cleared whereas I would expect to remain on the same page as the first test.
The second sample:
Here, the before() is called again for every test that is being executed. In our use case that is not ideal because it takes quite some time to setup and application using Cypress only procedures.
I've found some people facing the same issues but is there no solution to this issue? It feels like this would a shortcoming on the Cypress side.
Kind regards,
Alexander
Beta Was this translation helpful? Give feedback.
All reactions