A sample repo to demonstrate that cy.request are not getting captured by cypress-har-generator
- Cypress
- Node.js
- Chrome Browser
cd
to this repo and typenpm i
- Start the server by
node index.js
. Change the port if not available (make sure to do the changes in the spec as well) - Run the spec by
cypress run --spec "cypress/integration/1-getting-started/local.spec.js" --headed --browser "chrome"
- When the session is being executed, open the chrome dev tools and go to the Network tab and observe the requests being made.
- Export the har file from the Network tab before the browser closes (Optional).
- Then compare the har file generated by cypress-har-generator and the one we exported earlier (Optional).
Note: A har file exported from chrome browser and generated by cypress-har-generator are already available in the repo along with the video of the session.