Comments (7)
Got very similar issue, want to intercept an xhr/fetch call after clicking an input (checkbox)
cy.intercept('https://someurl').as('interceptRequest');
cy.get('#popover-basic input').check(['kw-test-123']);
cy.wait('@interceptRequest');
Feels like a bug or I'm missing something, although I have lots of places where I was doing this likely, although it was never a checkbox.
I can see from the console 2 scenarios
- The request was done before the interception was triggered, although the 'wait' is placed right after the click call.
- The interception blocked loading resource loading (after clicking, the request didn't trigger until interception died out of timeout, tried different timeouts so it's not a time issue)
Also tried on various versions of cypress
Cypress 13.6.0 or 13.7.2
node v20.11.1
chrome 123.0.6312.123
windows 11
What I also notice and mb it's somehow related, that the function in tested application, which is triggered after the click, is an 'async' one
saveFavorites: async (listId, performSync = true) => {
from cypress.
Could you share some details on this request, like the headers?
from cypress.
Here are the header details, please assist to overcome this or understand the reason so that I can move ahead.
from cypress.
@nehbehl Are there no errors in the console? I haven't seen this blocked behavior before in Cypress, but it probably has something to do with your application not playing well with how we render within an iframe. Some policy you have set or something is resulting in it being blocked?
from cypress.
@jennifer-shehane I get this error in console , what next steps would you suggest to resolve it?
from cypress.
Hi @jennifer-shehane , I have shared all the available details from my side and the marked stage still shows 'needs information'. Please let me know what else is required from my end.
from cypress.
There's not much we can do without a way to reproduce it on our side. I did do some research into blocked requests and nothing really made sense in this case with what I know we're doing. It would require a deeper dive into the code with the problem.
from cypress.
Related Issues (20)
- Memory not getting released - Failed to adjust OOM score of renderer with pid 610. Permission denied.
- selectFile errors on large files HOT 1
- Browser will freeze when sync request is intercepted (Tested in Cypress 10.11.0) HOT 1
- cy.document() does not return an HTMLDocument HOT 4
- Error: WebSocket connection closed (in cypress 13.10)
- ES modules Cannot be stubed
- Azure AD B2C Authentication not working when automated with Cypress HOT 1
- Assertions fail in after block, but not in a separate it block HOT 2
- Form submitted when pressing Enter in a button type "button"
- Remove support for older versions of Angular in relation to Component Testing
- Remove support for older versions of Next.js in relation to Component Testing
- Angular-cli "ng e2e" command use cypress @cypress/[email protected] but default test fail
- readFile command cannot read file with special symbols in name on Linux Debian - it says there is no such file
- Consider moving away from document.domain to adhere to better security practices
- Component Commands built into angular bundle causing missing "fs" module for Plugin.
- Missing browserCriClient in connectToNewSpec HOT 1
- Chaining .selectFile from document throws an error HOT 1
- Email address used when logging in with Github HOT 1
- Add configuration to customize or disable Content Security Policy HOT 3
- Support Chrome Devtools Protocol event listening
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress.