I have this function that doesn't pass on my computer, but on other computer passes. I get the following error: https://pastebin.com/Gb60DJ5V
it('should change comment status to SOLVED',
async function() {
await page.click("#view_replies3");
await change_comment_status(page, 5, 'SOLVED');
expect(await page.content())
.to.include('comm1')
.to.include('"timeline-comment-status bg-success" name="5"');
var comment_ids = await page.$$eval('li.timeline-comment',
elements => elements.map((element) => element.getAttribute('name')));
var comment_statuses = await page.$$eval(
'input.custom-control-input',
elements => elements.map((element) => element.checked)
);
expect(comment_ids).to.deep.equal(['1', '3', '5', '7', '6', '4']);
expect(comment_statuses).to.deep.equal(
[true, false, true, false, false, false]
);
}).timeout(0);
Aucun commentaire:
Enregistrer un commentaire