open-nomad/e2e/ui/playwright.config.js

35 lines
925 B
JavaScript

// playwright.config.js
// @ts-check
const { devices } = require('@playwright/test');
/** @type {import('@playwright/test').PlaywrightTestConfig} */
const config = {
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
use: {
trace: 'on-first-retry',
ignoreHTTPSErrors: true,
},
globalSetup: require.resolve('./global-setup'),
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
// disabling firefox temporarily because the container doesn't
// include it and so it tries to automatically install it and
// that takes longer than the timeout (30s). once we've got
// some value out of these tests we can customize the container
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
],
};
module.exports = config;