mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-09-27 21:34:42 +02:00
Nicco
c3b1772728
* testing * try playwrigth * testing * add pr support * not on each commit * add test ids * make backend more configuratble * 2.0.2 * spec
31 lines
735 B
TypeScript
31 lines
735 B
TypeScript
import { devices, type PlaywrightTestConfig } from '@playwright/test'
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
use: {
|
|
video: 'retain-on-failure',
|
|
baseURL: 'http://localhost:1234',
|
|
actionTimeout: 60_000,
|
|
},
|
|
|
|
outputDir: './test-results',
|
|
testDir: './test',
|
|
|
|
webServer: {
|
|
command: 'pnpm run ci:server',
|
|
port: 1234,
|
|
reuseExistingServer: true,
|
|
},
|
|
projects: [
|
|
{ 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',
|
|
},
|
|
],
|
|
}
|
|
|
|
export default config
|