当我使用 wdio 和 mocha 作为测试框架对多个浏览器运行测试时,我得到以下错误,如果它只针对一个浏览器运行,相同的断言工作正常
describe ('Landing Page test suite',()=> {
before(()=>{
browser.url('/')
})
it ('1. Page should be loaded proeprly',()=>{
p.header.waitForDisplayed()
expect(p.header).toBeVisible()
})
})
Unexpected return from a matcher function.
Matcher functions should return an object in the following format:
{message?: string | function, pass: boolean}
'[{"message": [Function message], "pass": false}, {"message": [Function message], "pass": false}]' was returned
这是代码示例 https://github.com/Amrkamel1/wdExample.git
运行: npm 我 npm 运行测试
潇潇雨雨
相关分类