Currently, we are using Auth0 for registration. The test case starts with visiting the website, and if the user is not logged in, the site redirects to the Auth0 page. Then, it should log in using a custom command. (get from the docs), but getting an error:
"CypressError: Timed out retrying after 15000ms: The command was expected to run against origin https://domain.com but the application is at origin https://domain.auth0.com."
Current behavior
Currently, we are using Auth0 for registration. The test case starts with visiting the website, and if the user is not logged in, the site redirects to the Auth0 page. Then, it should log in using a custom command. (get from the docs), but getting an error:
"CypressError: Timed out retrying after 15000ms: The command was expected to run against origin
https://domain.com
but the application is at originhttps://domain.auth0.com
."loginToAuth0 command is:
e2e/support/auth0Authentication.ts
Note that this problem only exists in Cypress run, not in Cypress open, and it affects test cases run in that way.
Desired behavior
Using origin it should be worked when running
Test code to reproduce
run command
yarn cypress: run
package.json "cypress:run": "cypress run --browser chrome"
Cypress Version
^13.6.6
Node version
^18.17.0
Operating System
macOS Ventura 13.0.1
Debug Logs
No response
Other
No response