title: How to change the document's HTML of the app under test (AUT)?
body: <p>I am trying to rewrite the complete page under test to include local content. I was trying to grab the html element and replace it all. I have base64 data to add for an image, but I would like to see text working as a start.</p>
  
  <p>Visiting a local HTML file is not working. Looking for a workaround.</p>
  
  <pre><code>cy.visit('/')
  cy.get('html')
      .invoke('attr', 'innerHTML', '&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Hello&lt;/h1&gt;&lt;body&gt;')
  </code></pre>