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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1,003 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// 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;