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

Cypress seems to be adding '__' in the path after a location.replace() command. #8747

Closed
mgmpskywalker07 opened this issue Oct 5, 2020 · 2 comments

Comments

@mgmpskywalker07
Copy link

mgmpskywalker07 commented Oct 5, 2020

I cannot setup a sandbox because this issue is happening with proprietary software for my company on a private network which is not accessible to the public.

Starting with the URL: https://iceuiucp-uw-wa-q.azurewebsites.net/mgm-ice/login.htm

In the screenshot below, you can see that the code is calling location.replace().

image

When the command is executed, the resulting URL:

image

Notice the '__' in the path.

If I were to perform the same action on a browser which is not automated by Cypress.io, the location.replace() causes the path to resolve to

image

Notice instead of the "__", there is now "mgm-ice". Could the "-" in "mgm-ice" be causing an issue? Any other thoughts on why this might be happening?

Versions

5.3.0, Mac 10.14.6, Chrome 85

@mgmpskywalker07
Copy link
Author

I found a similar issue here #7439. Can anyone confirm this is in fact the same issue?

@mgmpskywalker07
Copy link
Author

Our developers made the changes suggested above and it fixed the issue. Please feel free to close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants