Skip to content

Commit

Permalink
playwright config
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotz committed Nov 22, 2023
1 parent 85aedfe commit dab396a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import {devices} from '@playwright/test'

export default {
workers: 1,
timeout: 10000,
use: {
ignoreHTTPSErrors: true,
headless: true,
launchOptions: {
args: [
'--use-fake-ui-for-media-stream',
'--use-fake-device-for-media-stream',
'--disable-setuid-sandbox',
'--no-sandbox'
],
firefoxUserPrefs: {
'media.navigator.permission.disabled': true,
'media.navigator.streams.fake': true
}
}
},
projects: [
{
name: 'chromium',
use: {...devices['Desktop Chrome']}
}
],
webServer: {
command: 'http-server -S -C ./test/certs/cert.pem -K ./test/certs/key.pem',
url: 'https://localhost:8080/test',
ignoreHTTPSErrors: true
}
}

0 comments on commit dab396a

Please sign in to comment.