add ci #1
@@ -21,7 +21,6 @@ steps:
|
|||||||
depends_on: []
|
depends_on: []
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
- ./scripts/gen-dev-cert.sh
|
|
||||||
- npm run test:e2e
|
- npm run test:e2e
|
||||||
environment:
|
environment:
|
||||||
NODE_TLS_REJECT_UNAUTHORIZED: "0"
|
NODE_TLS_REJECT_UNAUTHORIZED: "0"
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export default defineConfig({
|
|||||||
name: 'desktop-chrome',
|
name: 'desktop-chrome',
|
||||||
use: {
|
use: {
|
||||||
...devices['Desktop Chrome'],
|
...devices['Desktop Chrome'],
|
||||||
|
permissions: ['camera', 'microphone', 'geolocation'],
|
||||||
launchOptions: {
|
launchOptions: {
|
||||||
args: [
|
args: [
|
||||||
'--use-fake-ui-for-media-stream',
|
'--use-fake-ui-for-media-stream',
|
||||||
@@ -57,5 +58,5 @@ export default defineConfig({
|
|||||||
timeout: 180_000, // 3 minutes (180 seconds) for server startup (CI can be slower)
|
timeout: 180_000, // 3 minutes (180 seconds) for server startup (CI can be slower)
|
||||||
ignoreHTTPSErrors: true,
|
ignoreHTTPSErrors: true,
|
||||||
},
|
},
|
||||||
timeout: 60_000, // 60 seconds per test (WebRTC setup takes time)
|
timeout: process.env.CI ? 180_000 : 60_000, // 3 minutes in CI, 1 minute locally (WebRTC setup takes time)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user