text: const expect = require('chai').expect;
  
  const checkPage = require('../../../demo/test_using_local_code/case_modules/page_baidu_index/baidu1-by-nightmare');
  
  describe('(baidu1-by-nightmare)百度首页：使用本地项目测试', function () {
    this.timeout(30000);
  
    let matmanResult;
  
    before(async function () {
      // 在某些场景下不再执行该用例，以方便调试
      if (process.env.NO_TEST_LOCAL === '1') {
        return this.skip();
      }
  
      matmanResult = await checkPage({show: false, doNotCloseBrowser: false, useRecorder: false});
    });
  
    describe('检查基本信息', function () {
      let data;
  
      before(function () {
        data = matmanResult.get(0);
      });
  
      it('网站title应该为：hi jack', function () {
        expect(data.title).to.equal('hi jack');
      });
  
      it('打招呼的文字应该为：你好，我不是 www.baidu.com', function () {
        expect(data.sayHello).to.equal('你好，我不是 www.baidu.com');
      });
    });
  });
  