NeuraLegion / cypress-har-generator

Cypress plugin for generating HTTP Archive (HAR) files captures network requests during Cypress tests.
https://www.npmjs.com/package/@neuralegion/cypress-har-generator
MIT License
80 stars 17 forks source link

xhr type request with a warning type request not record in har file #107

Open aaujayasena opened 1 year ago

aaujayasena commented 1 year ago

I observed xhr type request with a warning not record in har file generated from this plugin. But this request are critically important when analysing a test failures.

image

But this is recording when cypress test execution with UI interaction mode and "chromeWebSecurity": true and download the har file manually. But "chromeWebSecurity": true and execute heedless mode couldn't capture these request.

Please let me know if there is a way to get the details of an xhr request into the har file with chromeWebSecurity": false and headless mode using this plugin.

Appreciate your suggestions.

derevnjuk commented 1 year ago

@aaujayasena can you please clarify how this request was made? Did you use cy.visit to issue it? I would appreciate it if you provide a HAR file containing this entry.

derevnjuk commented 1 year ago

@aaujayasena Could you please share more information so I can better understand the issue? I am currently unable to reproduce the same behavior.