Skip to content

Commit 9988fd9

Browse files
Fixing 4.12.1 report pop issue.
1 parent 0a8da77 commit 9988fd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/helpers/reporterHTML.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,12 @@ function generateCypressCombinationSpecReportDataWithoutConfigJson(combination){
297297
resolve();
298298
}
299299
resultsJson.tests.forEach((test) => {
300+
durationKey = utils.isUndefined(test["attempts"]) ? test : test["attempts"].pop()
300301
sessionTests.push({
301302
name: test["title"].pop(),
302303
status: test["state"],
303304
duration: parseFloat(
304-
test["attempts"].pop()["wallClockDuration"] / 1000
305+
durationKey["wallClockDuration"] / 1000
305306
).toFixed(2)
306307
})
307308
});

0 commit comments

Comments
 (0)