<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>{{title}}</title>
  </head>
  <body>
    <script type="text/javascript">
      document.domain = '{{domain}}';

      (function(parent) {
        var Cypress = window.Cypress = parent.Cypress;
        if (!Cypress) {
          throw new Error("Tests cannot run without a reference to Cypress!");
        }
        return Cypress.onSpecWindow(window, {{scripts | safe}});
      })(window.opener || window.parent);
    </script>
  </body>
</html>
