* testing

* try playwrigth

* testing

* add pr support

* not on each commit
This commit is contained in:
2022-07-19 14:12:51 +02:00
committed by GitHub
parent a5d98b76bd
commit 786878a3e4
11 changed files with 153 additions and 17 deletions

25
playwright.config.ts Normal file
View File

@@ -0,0 +1,25 @@
import { devices, type PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
use: {
video: 'retain-on-failure',
baseURL: 'http://localhost:1234',
// actionTimeout: 10_000,
},
outputDir: './test-results',
testDir: './test',
testMatch: /.*\.ts/,
webServer: {
command: 'pnpm run ci:server',
port: 1234,
reuseExistingServer: true,
timeout: 20_000,
},
projects: [
{ name: 'Chrome', use: { ...devices['Desktop Chrome'] } },
{ name: 'Firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'Safari', use: { ...devices['Desktop Safari'] } },
],
}
export default config