stop-script See cypress/integration/spec.js that stubs document.head.appendChild to prevent a script that throws an error from adding itself. See the demo page in index.html