Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upUncaught DOMException: Failed to set the 'domain' property on 'Document': 'cleverapp.io' is a top-level domain. #5722
Comments
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
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... |
This comment has been minimized.
This comment has been minimized.
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 |
This comment has been minimized.
This comment has been minimized.
Thank you, we are waiting for this PR to be done ! |
This comment has been minimized.
This comment has been minimized.
The code for this is done in cypress-io/cypress#5726, but has yet to be released. |
This comment has been minimized.
This comment has been minimized.
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