question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome cy.visit breaks testpage, but works in Electron

See original GitHub issue

Current behavior:

When running a cy.visit in Chrome 74 the testpages turns nearly blank and displays Cannot GET /__/. However it does visit the page when Electron is used.

1. Running test image

2. Redirect? image

Config image

Desired behavior:

The cy.visit() call should show the served page at localhost:8080 in an iframe. The testpage should stay visible (as seen in screenshot 1).

Steps to reproduce:

The following test redirects to the page shown in the screenshot:

cy.visit('http://localhost:8080/index-mocks.html');

Versions:

Windows 10

$ ./cypress --version
Cypress package version: 3.3.0
Cypress binary version: 3.3.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:37 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
flotwigcommented, Jun 5, 2019

@RicardoVaranda You may be able to delete the policy yourself if you have local administrator access.

Sidebar: It’s especially unfortunate that so many companies have this policy set, as forcing a proxy is basically just security theater. It does nothing to make you more secure. Users can get around being forced to use a proxy by using other browsers that don’t respect policy, like SRWare Iron, or by injecting a DLL that blocks the policy. Of course, your company’s network will not allow Internet access without going through the proxy, which also makes forcing ProxyMode redundant. 🙄

2reactions
RicardoVarandacommented, May 22, 2019

We have also been facing this issue for quite some time now and had to use electron to bypass it. It would be great to get a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

session - Cypress Documentation
The cy.session() command will inherit the testIsolation value to determine whether or not the page is cleared when caching and restoring the browser...
Read more >
cypress-io/cypress - Gitter
Hi there ! I have run into this "Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 20...
Read more >
rouch/Cypress: Fast, easy and reliable testing for anything that runs ...
Before filing a bug, make sure you are up to date. Your issue may have already been fixed. Even if you do not...
Read more >
how to run all cypress tests Code Example - Code Grepper
npm install cypress //takes about 3-5 minutes for entire process. 2 ./node_modules/.bin/cypress open // just cypress run wont work. Add a Grepper Answer ......
Read more >
Hiu - River Thames Conditions - Environment Agency - GOV.UK
The unity candle song haan lyrics, Water main break greenwich nyc. Strandbad pressegger see eintritt, Video calling applications for mac, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found