|
1 | 1 | import { defineConfig, devices } from "@playwright/test"; |
2 | | - |
3 | | -/** |
4 | | - * Read environment variables from file. |
5 | | - * https://github.com/motdotla/dotenv |
6 | | - */ |
7 | | -// import dotenv from 'dotenv'; |
8 | | -// dotenv.config({ path: path.resolve(__dirname, '.env') }); |
| 2 | +import * as path from "path"; |
9 | 3 |
|
10 | 4 | /** |
11 | 5 | * See https://playwright.dev/docs/test-configuration. |
@@ -40,11 +34,12 @@ export default defineConfig({ |
40 | 34 | ...devices["Desktop Chrome"], |
41 | 35 | launchOptions: { |
42 | 36 | args: [ |
43 | | - "--disable-web-security", |
44 | | - "--enable-web-rtc", |
45 | | - "--headless=chrome", |
46 | | - // "--use-fake-device-for-media-stream", |
47 | | - // "--use-fake-ui-for-media-stream" |
| 37 | + // "--disable-web-security", |
| 38 | + // "--enable-web-rtc", |
| 39 | + // "--headless=chrome", |
| 40 | + "--use-fake-device-for-media-stream", |
| 41 | + // "--use-fake-ui-for-media-stream", |
| 42 | + `--use-file-for-fake-video-capture=${path.join(__dirname, './tests/video-src/small.y4m')}`, |
48 | 43 | ], |
49 | 44 | }, |
50 | 45 | contextOptions: { |
@@ -77,11 +72,6 @@ export default defineConfig({ |
77 | 72 | }, |
78 | 73 | }, |
79 | 74 | }, |
80 | | - contextOptions: { |
81 | | - /* Camera permission */ |
82 | | - permissions: ["indexedDB"], |
83 | | - ignoreHTTPSErrors: true, |
84 | | - }, |
85 | 75 | }, |
86 | 76 | // { |
87 | 77 | // name: "webkit", |
|
0 commit comments