CodeceptJS
CodeceptJS copied to clipboard
testCafe resizeWindow causes a TestCafe error and fails tests
What are you trying to achieve?
Trying to Change TestCafe Window Size using either Config or inside a test
What do you get instead?
TestCafe Error: {"filename":"/Users/malsaid/Documents/codeCeptJS/node_modules/codeceptjs/lib/helper/TestCafe.js","lineNum":345,"callsiteFrameIdx":5,"stackFrames":[{},{},{},{},{},{},{},{},{}],"isV8Frames":true} {"code":"E55","isTestCafeError":true,"callsite":{"filename":"/Users/malsaid/Documents/codeCeptJS/node_modules/codeceptjs/lib/helper/TestCafe.js","lineNum":345,"callsiteFrameIdx":5,"stackFrames":[{},{},{},{},{},{},{},{},{}],"isV8Frames":true},"id":"yuBHn4P"}
at mapError (node_modules/codeceptjs/lib/helper/testcafe/testcafe-utils.js:32:9)
at invokeCallback (node_modules/pinkie/index.js:60:12)
at Array.forEach (<anonymous>)
Scenario Steps:
- I.resizeWindow(2200, 1500) at Test.<anonymous> (./src/Desktop/AddressTesting/NewAddress/AMS21notZip5_Edit_test.js:31:49)
Fails at First Step in the Scenario which is:
await I.resizeWindow(2200, 1500);
Details
- CodeceptJS version: v3.3.4
- NodeJS Version: 16.15.1
- Operating System: macOS Monterey
- testcafe version: v1.20.1
- Configuration file:
TestCafe: {
url: 'url',
waitForTimeout: 5000,
getPageTimeout: 20000,
show: true,
browser: process.env.BROWSER,
//windowSize: '2200x1500', // If this is uncommented and the resizeWindow step is removed I get the same result
},