From 8f0f84835c0a2d11d4f0ef3b9632241cef921500 Mon Sep 17 00:00:00 2001 From: maxmattone Date: Wed, 1 Sep 2021 15:16:03 +0100 Subject: [PATCH 1/2] Update codecept.conf.js With default screen size the "Sign in" might not be displayed on Github.com --- codeceptjs-example/codecept.conf.js | 1 + 1 file changed, 1 insertion(+) diff --git a/codeceptjs-example/codecept.conf.js b/codeceptjs-example/codecept.conf.js index 260baf2..adfc2c9 100644 --- a/codeceptjs-example/codecept.conf.js +++ b/codeceptjs-example/codecept.conf.js @@ -20,6 +20,7 @@ exports.config = { output: './output', helpers: { Puppeteer: { + windowSize: '1920x1080', chrome: { browserWSEndpoint: `wss://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}` } From 61ff52f1be26f93322d67f6a1796d483fa9c0cb7 Mon Sep 17 00:00:00 2001 From: maxmattone Date: Thu, 2 Sep 2021 16:47:35 +0100 Subject: [PATCH 2/2] Update codecept.conf.js Adding `defaultViewport: null` as you suggested. Following recommendation from that issue: https://github.com/codeceptjs/CodeceptJS/issues/1209 --- codeceptjs-example/codecept.conf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codeceptjs-example/codecept.conf.js b/codeceptjs-example/codecept.conf.js index adfc2c9..defe5cd 100644 --- a/codeceptjs-example/codecept.conf.js +++ b/codeceptjs-example/codecept.conf.js @@ -22,7 +22,8 @@ exports.config = { Puppeteer: { windowSize: '1920x1080', chrome: { - browserWSEndpoint: `wss://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}` + browserWSEndpoint: `wss://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}`, + defaultViewport: null } } },