Skip to content

Commit 49ed69e

Browse files
committed
fix failed tests
1 parent ea9d4f8 commit 49ed69e

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ website
1010
.idea
1111
docs/build
1212
test/data/output
13-
test/data/custom
13+
1414
test/acceptance/output
1515
test/bdd/output
1616
examples/output

lib/utils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,11 @@ module.exports.deleteDir = function (dir_path) {
314314
module.exports.screenshotOutputFolder = function (fileName) {
315315
const isPathLike = fileName.includes('/') || fileName.includes('\\')
316316

317-
if (isPathLike &&
318-
!(fileName.includes(global.output_dir) || fileName.includes(global.codecept_dir))) {
317+
if (isPathLike && !(fileName.includes(global.output_dir) || fileName.includes(global.codecept_dir))) {
319318
return path.resolve(fileName)
320319
}
321320

322-
if (!fileName.includes(fileSep) || fileName.includes('record_')) {
321+
if (!isPathLike || fileName.includes('record_')) {
323322
return path.resolve(global.output_dir, fileName)
324323
}
325324
return path.resolve(global.codecept_dir, fileName)

test/data/custom/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)