-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Uncaught DOMException: Failed to set the 'domain' property on 'Document': 'cleverapp.io' is a top-level domain. #5722
Uncaught DOMException: Failed to set the 'domain' property on 'Document': 'cleverapp.io' is a top-level domain. #5722
Comments
If you really want to test, we have 2 URL for our production website : https://prod-bluevalet.cleverapps.io and The first one can't be launched via Cypress, the second one works perfectly. |
FYI, I found why the domain cleverapps.io is not found by the module. https://publicsuffix.org/list/public_suffix_list.dat The domain cleverapps.io was added by this pull publicsuffix/list#634, on Apr 9, 2018. The version 2.0.0 (https://github.com/peerigon/parse-domain/tree/v2.0.0) used by Cypress was build the Dec 3, 2017. So my domain name is not recognized by the module... That's why the new version works with my URL... |
Thanks for creating this issue @AlexLo33, we have been stuck on an older version of The bug was fixed in 2.3.2 so now we can start using new versions of There is a PR to update |
Thank you, we are waiting for this PR to be done ! 👍 |
The code for this is done in cypress-io/cypress#5726, but has yet to be released. |
Released in |
Current behavior:
I am currently trying to launch Cypress on an application deployed via Clever Cloud with their own url :
https://dev-xxxx.cleverapps.io
But I can't launch Cypress because of this error :
Uncaught DOMException: Failed to set the 'domain' property on 'Document': 'cleverapps.io' is a top-level domain.
I already saw this issue : #3717 and the problem is with the lib "parse-domain"
I have ran some tests with this lib, and the current behavior of the lib and here is the results :
Code :
Results :
I think it will work if the tld is "cleverapps.io" but actually the tld found is "io"...
So, i think it will work for both tests on actual version 2.3.4
Desired behavior:
I just want to launch Cypress on our test environnement...
Steps to reproduce: (app code and test code)
Launch Cypress on
https://localhost:3002
orhttps://www.bluevalet.fr
=> Working ✔️
Launch Cypress on
https://dev-xxx.cleverapps.io
=> Not working ❌
Versions
Cypress 3.6.1
Windows 10
The text was updated successfully, but these errors were encountered: