Open History to see the last commit
1import { defineConfig, devices } from '@playwright/test'
2import { devices as replayDevices, replayReporter } from '@replayio/playwright'
3β
4import dotenv from 'dotenv'
5β
6dotenv.config()
7β
8/**
9 * See https://playwright.dev/docs/test-configuration.
10 */
11export default defineConfig({
12 testDir: './tests',
13β
14 reporter: [
15 replayReporter({
16 apiKey: process.env.REPLAY_API_KEY,
17 upload: true,
18 }),
19 ['line'],
20 ],
21β
22 use: {
23 /* Base URL to use in actions like `await page.goto('/')`. */
24 baseURL: 'http://localhost:3000/',
25 },
26β
27 webServer: {
28 // TODO: build && start seems broken, use that if it's working
29 command: 'pnpm run dev',
30 url: 'http://localhost:3000',
31 reuseExistingServer: !process.env.CI,
32 stdout: 'pipe',
33 },
34β
35 projects: [
36 {
37 name: 'replay-chromium',
38 use: { ...replayDevices['Replay Chromium'] },
39 },
40 {
41 name: 'chromium',
42 use: { ...devices['Desktop Chrome'] },
43 },
44 ],
45})