-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplaywright.frameworks.config.ts
More file actions
47 lines (46 loc) · 1.06 KB
/
Copy pathplaywright.frameworks.config.ts
File metadata and controls
47 lines (46 loc) · 1.06 KB
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
40
41
42
43
44
45
46
47
import { defineConfig, devices } from '@playwright/test';
/**
* Playwright configuration for testing framework integration demos.
* Tests TanStack Start, Next.js, and SvelteKit apps with Agentuity integration.
*
* Specs live colocated with each app under tests/frameworks/<app>/tests/e2e.pw.ts.
*/
export default defineConfig({
testDir: './tests/frameworks',
testMatch: '**/tests/e2e.pw.ts',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1,
reporter: 'html',
timeout: 60000,
use: {
trace: 'on-first-retry',
},
projects: [
{
name: 'tanstack',
testMatch: 'tanstack-start/tests/e2e.pw.ts',
use: {
...devices['Desktop Chrome'],
baseURL: 'http://localhost:3000',
},
},
{
name: 'nextjs',
testMatch: 'nextjs-app/tests/e2e.pw.ts',
use: {
...devices['Desktop Chrome'],
baseURL: 'http://localhost:3000',
},
},
{
name: 'svelte',
testMatch: 'svelte-web/tests/e2e.pw.ts',
use: {
...devices['Desktop Chrome'],
baseURL: 'http://localhost:3000',
},
},
],
});