Turn off xhr requests in Cypress timeline
npm install cypress-plugin-xhr-toggle
A small Cypress helper that de-clutters your timeline by hiding XHR requests.
Install this package:
``bash`
npm i cypress-plugin-xhr-toggleor
yarn add cypress-plugin-xhr-toggle
Import the plugin into your cypress/support/e2e.js file:`js`
import 'cypress-plugin-xhr-toggle'
// or
require('cypress-plugin-xhr-toggle')
into your env object:`ts
import { defineConfig } from "cypress";export default defineConfig({
fixturesFolder: false,
e2e: {
setupNodeEvents(on, config) {},
env: {
hideXhr: true
}
},
});
``
...powered by coffee and love ❤️ Filip Hric