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

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

    {{#each javascripts}}
      <script type="text/javascript" src="{{{this}}}"></script>
    {{/each}}

    {{#each specs}}
      <script type="text/javascript" src="{{{this}}}"></script>
    {{/each}}
  </body>
</html>
