Skip to content

Commit 9618f3f

Browse files
authored
Update webapi.js
1 parent 85265e0 commit 9618f3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helper/webapi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,8 @@ module.exports.tests = function () {
892892
describe('#saveScreenshotToPath', () => {
893893
beforeEach(() => {
894894
global.output_dir = path.join(global.codecept_dir, 'output')
895-
global.custom_dir = path.join(global.codecept_dir, 'custom')
896-
})
895+
// workaround so that we dont need to create an empty custom dir upfront
896+
global.custom_dir = global.output_dir
897897

898898
it('should create a screenshot file in custom dir', async () => {
899899
if (isHelper('TestCafe')) return

0 commit comments

Comments
 (0)