38 lines
No EOL
849 B
TypeScript
38 lines
No EOL
849 B
TypeScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import 'dotenv/config';
|
|
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
/**
|
|
* See https://playwright.dev/docs/test-configuration.
|
|
*/
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/playwright',
|
|
fullyParallel: true,
|
|
retries: 0,
|
|
workers: 1,
|
|
reporter: 'list',
|
|
use: {
|
|
baseURL: 'http://localhost:3333',
|
|
trace: 'on-first-retry',
|
|
},
|
|
|
|
/* Configure projects for major browsers */
|
|
projects: [
|
|
{ name: 'setup', testMatch: /.*\.setup\.ts/ },
|
|
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
dependencies: ['setup'],
|
|
},
|
|
],
|
|
|
|
/* Run your local dev server before starting the tests */
|
|
webServer: {
|
|
command: 'yarn start',
|
|
url: 'http://localhost:3333',
|
|
timeout: 120 * 1000,
|
|
reuseExistingServer: true,
|
|
},
|
|
}); |