虽然我看到了一个关于此的未解决问题,但想检查我们是否有解决方法,有什么建议值得赞赏吗?:
只有在使用时,我才看到元素和元素的this.retries()
json 结果显示为空,也因为 html 报告看起来不正确。这是我的测试null
state
speed
pass
fail
false
err
describe(`Page Load checks `, async function () {
it('Page Check', async function () {
this.retries(1);
presentationsPage = await navMenu.loadPresentationsPage();
const result = await presentationsPage.isPresentationsPageLoadComplete();
expect(result).to.equal(true, 'Expected : Presentation Page');
}) ;
} );
和json结果
{
"title": "Page Check",
"fullTitle": "Page Loads Check",
"timedOut": false,
"duration": 32014,
"state": null,
"speed": null,
"pass": false,
"fail": false,
"pending": false,
"context": null,
"code": "__awaiter(this, void 0, void 0, function...",
"err": {},
"uuid": "6971b4af-b327bda4ffa8",
"parentUUID": "3345841e-6a5f-19fee98",
"isHook": false,
"skipped": true
}