github.com/hernad/nomad@v1.6.112/e2e/ui/playwright.config.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 // playwright.config.js 7 // @ts-check 8 const { devices } = require('@playwright/test'); 9 10 /** @type {import('@playwright/test').PlaywrightTestConfig} */ 11 const config = { 12 forbidOnly: !!process.env.CI, 13 retries: process.env.CI ? 2 : 0, 14 use: { 15 trace: 'on-first-retry', 16 ignoreHTTPSErrors: true, 17 }, 18 globalSetup: require.resolve('./global-setup'), 19 projects: [ 20 { 21 name: 'chromium', 22 use: { ...devices['Desktop Chrome'] }, 23 }, 24 // disabling firefox temporarily because the container doesn't 25 // include it and so it tries to automatically install it and 26 // that takes longer than the timeout (30s). once we've got 27 // some value out of these tests we can customize the container 28 // { 29 // name: 'firefox', 30 // use: { ...devices['Desktop Firefox'] }, 31 // }, 32 { 33 name: 'webkit', 34 use: { ...devices['Desktop Safari'] }, 35 }, 36 ], 37 }; 38 39 module.exports = config;