From c6ee9e3b0a3e9808257efb70b88481f7c86a1970 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Mon, 8 Nov 2021 12:51:54 -0400 Subject: [PATCH] use consistent defaultViewport --- packages/js/e2e-environment/CHANGELOG.md | 4 ++++ packages/js/e2e-environment/config/jest-puppeteer.config.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/js/e2e-environment/CHANGELOG.md b/packages/js/e2e-environment/CHANGELOG.md index 5e3285bf984..26c0ac4752e 100644 --- a/packages/js/e2e-environment/CHANGELOG.md +++ b/packages/js/e2e-environment/CHANGELOG.md @@ -5,6 +5,10 @@ - Added quotes around `WORDPRESS_TITLE` value in .env file to address issue with docker compose 2 "key cannot contain a space" error. - Added `LATEST_WP_VERSION_MINUS` that allows setting a number to subtract from the current WordPress version for the WordPress Docker image. +## Fixed + +- Use consistent `defaultViewport` in both headless and non-headless context + # 0.2.3 ## Added diff --git a/packages/js/e2e-environment/config/jest-puppeteer.config.js b/packages/js/e2e-environment/config/jest-puppeteer.config.js index 0966adb1ca1..3fb2a6ef1c8 100644 --- a/packages/js/e2e-environment/config/jest-puppeteer.config.js +++ b/packages/js/e2e-environment/config/jest-puppeteer.config.js @@ -8,6 +8,10 @@ if ( 'no' == global.process.env.node_config_dev ) { launch: { // Required for the logged out and logged in tests so they don't share app state/token. browserContext: 'incognito', + defaultViewport: { + width: 1280, + height: 800, + }, }, }; } else {