质量保证 使用无头浏览器运行功能测试

const chai = require('chai');
const assert = chai.assert;

const server = require('../server');

const chaiHttp = require('chai-http');
chai.use(chaiHttp);

suite('Functional Tests', function () {
  this.timeout(5000);

  //-------------------------------//
const Browser = require('zombie');
Browser.site = "https://boilerplate-mochachai-1.luojiyin1987.repl.co"
suite('Functional Tests with Zombie.js', function () {
  this.timeout(5000);
  const browser = new Browser();
  


  suite('Headless browser', function () {
    test('should have a working "site" property', function() {
      assert.isNotNull(browser.site);
    });
  });
   
 suite('"Famous Italian Explorers" form', function () {
    // #5
     test('submit "surname" : "Colombo"  e2e test...', (done)=> {
        browser.fill("surname", "Colombo").then(
        browser.pressButton("submit", function() {
          browser.assert.success();
          browser.assert.text("span#name", "Cristoforo");
          browser.assert.text("span#surname", "Colombo");
          browser.assert.element("span#dates", 1);
          done();
        })
      );
     })
   
   });
   
  })

https://replit.com/ 的 报错信息

 1) Functional Tests
       Functional Tests with Zombie.js
         "Famous Italian Explorers" form
           submit "surname" : "Colombo" - write your e2e test...:
     AssertionError [ERR_ASSERTION]: No open window with an HTML document