Files
threshold-ui/e2e-tests/admin/playwright.config.js
T

39 lines
1.1 KiB
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
2024-12-03 18:51:22 -05:00
import { defineConfig, devices } from '@playwright/test';
import { authenticatedState } from '../global-setup';
/** @type {import('@playwright/test').PlaywrightTestConfig} */
export default defineConfig({
2024-12-03 18:51:22 -05:00
globalSetup: '../global-setup',
outputDir: './artifacts/test-failures',
2024-03-14 14:17:54 -04:00
timeout: 90000, // Each test is given 90s to complete
workers: 1, // Tests need to be run in serial, otherwise there may be conflicts when using the CLI
use: {
baseURL: process.env.BOUNDARY_ADDR,
extraHTTPHeaders: {
// This token is set in global-setup.js
Authorization: `Bearer ${process.env.E2E_TOKEN}`,
},
screenshot: 'only-on-failure',
storageState: authenticatedState,
trace: 'retain-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
],
});