-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplaywright.config.js
More file actions
39 lines (38 loc) · 844 Bytes
/
Copy pathplaywright.config.js
File metadata and controls
39 lines (38 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
timeout: 30000,
use: {
baseURL: 'http://localhost:5173',
headless: true,
screenshot: 'off',
},
projects: [
{
name: 'desktop',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'mobile',
use: {
...devices['Pixel 7'],
// Use Chromium (already installed) instead of WebKit
browserName: 'chromium',
},
},
],
webServer: [
{
command: 'npx firebase emulators:start --only firestore,auth --import=./firebase_emulator_cache',
port: 7070,
reuseExistingServer: true,
timeout: 30000,
},
{
command: 'npx vite --port 5173',
port: 5173,
reuseExistingServer: true,
timeout: 15000,
},
],
});