-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathplaywright.chatClient.config.ts
More file actions
44 lines (40 loc) · 1.15 KB
/
playwright.chatClient.config.ts
File metadata and controls
44 lines (40 loc) · 1.15 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
process.env.NODE_ENV = 'development'; // Set before importing Playwright
import { defineConfig, devices } from '@playwright/test';
import 'dotenv/config';
export default defineConfig({
testDir: './e2e/chatClient',
reporter: process.env.TEST_SHARDED ? 'blob' : 'html',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 3,
workers: '50%',
timeout: 5 * 60 * 1_000,
expect: {
timeout: 20 * 1000,
},
reportSlowTests: {
threshold: 60 * 1_000,
max: 10,
},
use: {
testIdAttribute: 'data-automation-id',
actionTimeout: 20 * 1_000,
baseURL: 'http://localhost:3001',
video: 'on-first-retry',
trace: 'on',
},
/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], permissions: ['clipboard-read', 'clipboard-write'] },
},
],
/* Run the chat client dev server before starting the tests */
webServer: {
command: 'pnpm --filter @microsoft/logic-apps-chat run build && pnpm --filter @a2achat/iframe-app run e2e',
url: 'http://localhost:3001/',
ignoreHTTPSErrors: true,
reuseExistingServer: !process.env.CI,
},
});