diff --git a/packages/cypress-plugins/src/plugins/networkShim/createFixturesFromState.js b/packages/cypress-plugins/src/plugins/networkShim/createFixturesFromState.js index b40d546c..6cc2c077 100644 --- a/packages/cypress-plugins/src/plugins/networkShim/createFixturesFromState.js +++ b/packages/cypress-plugins/src/plugins/networkShim/createFixturesFromState.js @@ -24,7 +24,7 @@ module.exports = function createFixturesFromState(state, cypressConfig) { (acc, request) => { const fileName = request.static ? 'static_resources' - : request.featureName.toLowerCase().replaceAll(' ', '_') + : request.featureName.toLowerCase().replace(/\s/g, '_') if (!acc[fileName]) { acc[fileName] = []