CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

testCafe resizeWindow causes a TestCafe error and fails tests

Open malsaid000 opened this issue 3 years ago • 0 comments

What are you trying to achieve?

Trying to Change TestCafe Window Size using either Config or inside a test

What do you get instead?

2022-08-12_11-27-38
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
		},

malsaid000 avatar Aug 12 '22 15:08 malsaid000