Skip to content

Commit 06311e9

Browse files
author
DavertMik
committed
small fix to screenshot failures
1 parent 5b4a9b7 commit 06311e9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/plugin/screenshotOnFail.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,8 @@ module.exports = function (config) {
140140
})
141141

142142
function _getUUID(test) {
143-
if (test.uuid) {
144-
return test.uuid
145-
}
146-
147-
if (test.ctx && test.ctx.test.uuid) {
148-
return test.ctx.test.uuid
143+
if (test.uid) {
144+
return test.uid
149145
}
150146

151147
return Math.floor(new Date().getTime() / 1000)

0 commit comments

Comments
 (0)