2022-07-19 12:12:51 +00:00
|
|
|
import { devices, type PlaywrightTestConfig } from '@playwright/test'
|
|
|
|
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
|
|
use: {
|
|
|
|
video: 'retain-on-failure',
|
|
|
|
baseURL: 'http://localhost:1234',
|
2022-07-19 19:55:05 +00:00
|
|
|
actionTimeout: 60_000,
|
2022-07-19 12:12:51 +00:00
|
|
|
},
|
2022-07-19 19:55:05 +00:00
|
|
|
|
2022-07-19 12:12:51 +00:00
|
|
|
outputDir: './test-results',
|
|
|
|
testDir: './test',
|
2022-10-07 19:28:25 +00:00
|
|
|
timeout: 60_000,
|
|
|
|
testIgnore: ['file/too-big.spec.ts'],
|
2022-07-19 19:55:05 +00:00
|
|
|
|
2022-07-19 12:12:51 +00:00
|
|
|
webServer: {
|
2022-10-07 19:28:25 +00:00
|
|
|
command: 'pnpm run test:server',
|
2022-07-19 12:12:51 +00:00
|
|
|
port: 1234,
|
|
|
|
reuseExistingServer: true,
|
|
|
|
},
|
2022-10-07 19:28:25 +00:00
|
|
|
|
2022-07-19 12:12:51 +00:00
|
|
|
projects: [
|
2022-07-19 19:55:05 +00:00
|
|
|
{ name: 'chrome', use: { ...devices['Desktop Chrome'] } },
|
|
|
|
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
|
|
|
|
{ name: 'safari', use: { ...devices['Desktop Safari'] } },
|
|
|
|
{
|
|
|
|
name: 'local',
|
|
|
|
use: { ...devices['Desktop Chrome'] },
|
|
|
|
// testMatch: 'file/too-big.spec.ts',
|
|
|
|
},
|
2022-07-19 12:12:51 +00:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
export default config
|