Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to override single unique domain per test limitation #1267

Closed
peterklijn opened this issue Feb 7, 2018 · 1 comment
Closed

Option to override single unique domain per test limitation #1267

peterklijn opened this issue Feb 7, 2018 · 1 comment
Labels
type: duplicate This issue or pull request already exists

Comments

@peterklijn
Copy link

peterklijn commented Feb 7, 2018

Is this a Feature or Bug?

Feature

Current behavior:

Tests are limited to a single domain per test

Desired behavior:

An override in the visit() command to allow this for a specific visit.

Additional Info (images, stack traces, etc)

In the WebSecurity documentation (https://on.cypress.io/web-security#Disabling-Web-Security) there's a mention that the Cypress limitation is artificial and if one wants it overwritten, an issue should be opened. So here we go :).

One of the integration tests that I'm trying to write is testing the reset password flow of our application. We use Auth0 as an authentication provider, which hosts it's own reset page, on its own domain. I would like this functionality to be under integration test as it's an important flow which is should not be broken.

This means that there's a test that starts on https://login.ourdomain.com/reset, jumps to https://our-company.eu.auth0.com/lo/reset?ticket=123456789 and eventually back at https://login.ourdomain.com/.

I understand the limitation in Cypress as it's often a indication of bad tests, and maybe this is an example of it. I would however still like to be able to override it.

@jennifer-shehane
Copy link
Member

Duplicate of #944

@jennifer-shehane jennifer-shehane marked this as a duplicate of #944 Jan 25, 2019
@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Jan 25, 2019
@cypress-io cypress-io locked as off-topic and limited conversation to collaborators May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants