Skip to content

Commit 85265e0

Browse files
committed
fix: cannot run webapi tests
1 parent 2ef8948 commit 85265e0

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
@@ -890,14 +890,14 @@ module.exports.tests = function () {
890890
})
891891

892892
describe('#saveScreenshotToPath', () => {
893-
if (isHelper('TestCafe')) return
894-
895893
beforeEach(() => {
896894
global.output_dir = path.join(global.codecept_dir, 'output')
897895
global.custom_dir = path.join(global.codecept_dir, 'custom')
898896
})
899897

900898
it('should create a screenshot file in custom dir', async () => {
899+
if (isHelper('TestCafe')) return
900+
901901
const sec = new Date().getUTCMilliseconds()
902902
await I.amOnPage('/')
903903
await I.saveScreenshotToPath(global.custom_dir, `screenshot_${sec}.png`)

0 commit comments

Comments
 (0)