MiklosBalazsi
MiklosBalazsi

Reputation: 253

Why cy.request can not be seen in Chrome DevTools Network tab

I am calling multiple cy.request.

Why I can not see them in Chrome DevTool Network tab?

Upvotes: 3

Views: 1248

Answers (1)

Fody
Fody

Reputation: 31924

cy.request() comes from the test runner, not the app. It bypasses the browser network tab.

See docs for `cy.request' Debugging

Debugging

Request is not displayed in the Network Tab of Developer Tools

Cypress does not actually make an XHR request from the browser. We are actually making the HTTP request from the Cypress Test Runner (in Node). So, you won't see the request inside of your Developer Tools.

Upvotes: 7

Related Questions