-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Issue with domains in 'baseUrl' having several dots #1680
Comments
Can you install an earlier version of Cypress and confirm that this is a regression in 2.1.0? That would help narrow down the issue. Earlier versions |
Sorry my bad, it wasn't working on previous versions, the difference is that in previous versions there wasn't a Instead I was using cy.visit('http://my-test-app.westeurope.cloudapp.azure.com'); and that still works. At the moment I have: cy.visit('/'); and I have a config like that for prod testing: {
"baseUrl": "http://my-test-app.westeurope.cloudapp.azure.com"
} and one like that for local testing: {
"baseUrl": "http://localhost:3000"
} so that I can switch between environments easily. It works well for localhost but I can't run my tests against the Azure website, is that a bug? Thanks! |
We're unaware of an issue with this currently, but it helps narrowing this down to We had issues with this/something similar a while back that were fixed in 1.4.2 |
Sorry to bring this up again, I've been reading this error message again:
and reading Thanks! |
No, it's not intended to only be run on |
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen. |
Hi @jennifer-shehane , This still doesn't work in Cypress 4.0.1. I checked it in 3.8.3 and 4.0.1, and base url is completely ignored if you have more than one dot anywhere in the url. For example, we have urls like this: https://sub.domain.com/MyApp-v1.2.3/appArea/ (notice the multiple dots in the app name) If I call The original question had dots in the baseUrl, and we have the dots in the app name, so this could affect a lot of apps potentially. Quick fix for this is to URL encode the dots, which means that regular expression that concatenates the baseUrl with app name has a bug. The problem with URL encode is that the asserts and logs in cypress contain the URL encoded text then, so it looks ugly. I think this should still be treated as a bug. Thanks! |
Running in to this issue in v10.7 and 10.11 as well. From what I can tell it requires both:
Example configuration file:
Full minimal reproduction in this repo here: https://github.com/HallOfSame/CypressBaseUrlBug The error is thrown from the
When |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior:
I'm trying to tests a website on an Azure domain which looks like:
When I try to run cypress, I'm getting the following error:
If I try to run
cypress run
, my terminal just hangs after(Tests Starting)
without stopping or showing any error.Desired behavior:
The site is testable.
Steps to reproduce:
See above.
Versions
2.1.0
Also, it seems to be a recent regression, I was able to test this website a few months ago.
The text was updated successfully, but these errors were encountered: