Cypress: Parse domains/subdomains/tld using public suffix

Created on 25 Oct 2017  路  3Comments  路  Source: cypress-io/cypress

Currently Cypress does a naive attempt at determining the domain, subdomain, and TLD of the current application under test.

It does not consider the public suffix, which results in it setting incorrect document.domain as well as yelling about changing domains when it's really not.

We should package in this npm module and then either make calls for parsing async (and do it in node) or transfer the data to Cypress during its bootstrap phase so it can parse it in the driver correctly.

Related to https://github.com/cypress-io/cypress/issues/380 and https://github.com/cypress-io/cypress/issues/600

bug

Most helpful comment

Released in 1.4.2.

All 3 comments

do you guys have an ETA on this or a suggestion of where to start with this?

Same here. I can't get it running locally because my test domain contains "local" (and sorry, no, that's not easy to be changed in our setup).

Released in 1.4.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

weskor picture weskor  路  3Comments

szabyg picture szabyg  路  3Comments

stormherz picture stormherz  路  3Comments

rbung picture rbung  路  3Comments

zbigniewkalinowski picture zbigniewkalinowski  路  3Comments