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.

experimental fetch polyfill locks a site visit

See original GitHub issue

Cypress v4.9.0 with experimental fetch polyfill “true”

it('hangs forever', () => {
  cy.visit('https://one.clappia.com/', { timeout: 10000 })
  cy.get('#loginform > div:nth-child(8) > div > div > button').should('be.visible')
})

Note: the site has a redirect and bunch of canceled ajax calls normally, maybe there is something that locks up XMLHttpRequest polyfill?

Screen Shot 2020-06-26 at 8 46 40 AM

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, Jun 30, 2020

@SidharthLala1 This shouldn’t relate to your tests. I happened to be testing your application in the issue and accidentally had the experimentalFetchPolyfill configuration on when visiting the app and noticed the behavior was different with the experimental flag on. So, it was a bug that I forwarded to gleb that he then opened to investigate why your app would behave differently with this flag on.

It shouldn’t affect your testing since you do not use this experimental flag.

0reactions
jennifer-shehanecommented, Dec 30, 2020

experimentalFetchPolyfill has been deprecated in Cypress 6.0.0. We will not be addressing any new work on this feature. We encourage you to use cy.intercept() to intercept requests using the Fetch API instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Experimental Fetch Polyfill
This application presents two challenges to end-to-end tests. First, the data is random - every time the test visits the page localhost:7080 a ......
Read more >
locked/event-source-polyfill - npm package
The npm package @locked/event-source-polyfill was scanned for known vulnerabilities and missing license, and no issues were found. Thus the ...
Read more >
Experimental fetch polyfill - YouTube
Instead of stubbing window. fetch we can use the experimental fetch polyfill and built-in Network control to stub or slow down Ajax requests ......
Read more >
CSP: require-trusted-types-for - HTTP - MDN Web Docs
The HTTP Content-Security-Policy (CSP) require-trusted-types-for Experimental directive instructs user agents to control the data passed to ...
Read more >
Firebase JavaScript SDK Release Notes - Google
Added missing identities field to firebase claim in the typings for the ID token ... Fixed incorrect import of node-fetch polyfill that caused...
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