open-nomad/e2e/ui/playwright.config.js
Tim Gross 2ad9f6bc5f
E2E: playwright configuration and smoke test (#12721)
Scripts for running playwright tests in a Docker container that has
chromium and webkit preinstalled. Includes a basic smoke test for
authentication so that we can be sure the test rig is working
end-to-end. Wiring this up in CI will be in an upcoming PR.
2022-04-21 09:13:10 -04:00

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;