mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-17 23:41:11 +00:00
48 lines
1023 B
TypeScript
48 lines
1023 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './specs',
|
|
fullyParallel: true,
|
|
forbidOnly: false,
|
|
retries: 0,
|
|
workers: 4,
|
|
reporter: 'html',
|
|
use: {
|
|
trace: 'on-first-retry',
|
|
video: 'on',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
use: { ...devices['Desktop Firefox'] },
|
|
},
|
|
|
|
{
|
|
name: 'webkit',
|
|
use: { ...devices['Desktop Safari'] },
|
|
},
|
|
{
|
|
name: 'Mobile Chrome',
|
|
use: { ...devices['Pixel 5'] },
|
|
},
|
|
{
|
|
name: 'Mobile Safari',
|
|
use: { ...devices['iPhone 12'] },
|
|
},
|
|
],
|
|
webServer: {
|
|
command: 'docker compose -f docker-compose.e2e.yml up --build --pull=always --force-recreate --remove-orphans',
|
|
url: 'http://tinyauth.127.0.0.1.sslip.io/api/healthz',
|
|
reuseExistingServer: true,
|
|
timeout: 5 * 60 * 1000,
|
|
gracefulShutdown: {
|
|
signal: 'SIGINT',
|
|
timeout: 1000,
|
|
},
|
|
},
|
|
});
|