2023-12-15 04:40:36 +08:00
|
|
|
import { defineConfig } from "@playwright/test";
|
|
|
|
|
|
|
|
export default defineConfig({
|
2022-03-23 23:19:12 +08:00
|
|
|
use: {
|
|
|
|
screenshot: "only-on-failure",
|
2023-11-16 22:45:48 +08:00
|
|
|
trace: "retain-on-failure",
|
2024-01-23 08:19:48 +08:00
|
|
|
permissions: ["clipboard-read", "clipboard-write", "microphone"],
|
2023-11-16 22:45:48 +08:00
|
|
|
bypassCSP: true,
|
|
|
|
launchOptions: {
|
2024-01-23 08:19:48 +08:00
|
|
|
args: [
|
|
|
|
"--disable-web-security",
|
|
|
|
"--use-fake-device-for-media-stream",
|
|
|
|
"--use-fake-ui-for-media-stream"
|
|
|
|
]
|
2023-11-16 22:45:48 +08:00
|
|
|
}
|
2022-03-23 23:19:12 +08:00
|
|
|
},
|
2023-12-15 04:40:36 +08:00
|
|
|
expect: { timeout: 60000 },
|
|
|
|
timeout: 90000,
|
2023-07-06 17:55:45 +08:00
|
|
|
testMatch: /.*.spec.ts/,
|
2023-03-28 07:12:58 +08:00
|
|
|
testDir: "..",
|
2023-12-15 04:40:36 +08:00
|
|
|
globalSetup: "./playwright-setup.js",
|
|
|
|
workers: process.env.CI ? 1 : undefined
|
|
|
|
});
|