我使用以下堆栈来运行几个测试:
NodeJs
Selenium standalone
geckodriver thought I use chrome
webdriver.io
mocha
chai
毕竟我的first_test.js是:
describe ('Website url test ', () => {
it('should have a title ', () => {
browser.call((done) => {
browser.url('http://webdriver.io');
var title = browser.getTitle();
expect(title).to.be.equal('WebdriverIO - WebDriver bindings for Node.js')
done();
})
})
但对于通过测试也应如此:正确的控制台输出
Mocha中的内容是否应该更改,以便通过测试会产生相同的光学结果?
解决方法:
这种行为是由记者选择的(在我的案例中为dot).