How to overwrite HTML with Cypress

Here’s a quick snippet to allow you change the HTML of a page before Cypress fires your tests. In an ideal world you would want to have different server side rendered HTML pages and you would just call page-1.html and page-2.html but in my case the component I’m trying to test inherits a configuration from […]