Hello, the goal is to test the ability to login y...
# help
v
Hello, the goal is to test the ability to login yes after being connected the user should be redirected to a different domain where we see the avatar of the user but in my case when cypress clicks on loggin button, there is a redirection to another domain but we still not be connected :/
a
There are limitations when trying to redirect to a different domain with Cypress because currently only one domain is supported. You can use programmatic auth to get around this issue: https://docs.cypress.io/guides/testing-strategies/auth0-authentication#Auth0-Application-Setup
Also, depending on the type of auth you are using we have examples recipes here: https://github.com/cypress-io/cypress-realworld-app/tree/develop/cypress/tests/ui-auth-providers
Let me know if this helps