From 6aaf4a2c065c558149c54b3d8225b8f5da81945d Mon Sep 17 00:00:00 2001 From: John Hill Date: Tue, 18 Jan 2022 11:53:05 -0800 Subject: [PATCH] Add projects to local config and comment out ipad (#4727) Co-authored-by: unlikelyzero Co-authored-by: Nikhil --- e2e/playwright-ci.config.js | 6 +++--- e2e/playwright-local.config.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/e2e/playwright-ci.config.js b/e2e/playwright-ci.config.js index 5647e74619..c89471cfe9 100644 --- a/e2e/playwright-ci.config.js +++ b/e2e/playwright-ci.config.js @@ -41,14 +41,14 @@ const config = { height: 1440 } } - }, - { + } + /*{ name: 'ipad', use: { browserName: 'webkit', ...devices['iPad (gen 7) landscape'] // Complete List https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json } - } + }*/ ], reporter: [ ['list'], diff --git a/e2e/playwright-local.config.js b/e2e/playwright-local.config.js index 78fd043c55..58b3c8e100 100644 --- a/e2e/playwright-local.config.js +++ b/e2e/playwright-local.config.js @@ -2,6 +2,8 @@ // playwright.config.js // @ts-check +const { devices } = require('@playwright/test'); + /** @type {import('@playwright/test').PlaywrightTestConfig} */ const config = { retries: 0, @@ -23,6 +25,32 @@ const config = { trace: 'on', video: 'on' }, + projects: [ + { + name: 'chrome', + use: { + browserName: 'chromium', + ...devices['Desktop Chrome'] + } + }, + { + name: 'MMOC', + use: { + browserName: 'chromium', + viewport: { + width: 2560, + height: 1440 + } + } + } + /*{ + name: 'ipad', + use: { + browserName: 'webkit', + ...devices['iPad (gen 7) landscape'] // Complete List https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json + } + }*/ + ], reporter: [ ['list'], ['allure-playwright']