-
Notifications
You must be signed in to change notification settings - Fork 35
/
wtr-int-browsers.config.mjs
38 lines (37 loc) · 1.29 KB
/
wtr-int-browsers.config.mjs
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
/* eslint-disable import/extensions */
import { defaultReporter, summaryReporter } from '@web/test-runner';
import { playwrightLauncher } from '@web/test-runner-playwright';
import { takeScreenshotPlugin } from './wtr/screenshot-plugin.mjs';
import { pageRoutePlugin } from './wtr/page-route-plugin.mjs';
import { rollupReplacePlugin } from './wtr/rollup-replace-plugin.mjs';
export default {
browsers: [
playwrightLauncher({
product: 'chromium',
launchOptions: { args: ['--disable-web-security'], bypassCSP: true, headless: false },
}),
playwrightLauncher({
product: 'firefox',
// // Not working
// launchOptions: {
// firefoxUserPrefs: { 'security.fileuri.strict_origin_policy': false },
// bypassCSP: true,
// },
// Use page route plugin to bypass CORS
}),
playwrightLauncher({
product: 'webkit',
// Use page route plugin to bypass CORS
}),
],
coverageConfig: {
exclude: ['**/mocks/**', '**/node_modules/**', '**/test/**'],
reportDir: 'coverage/wtr',
},
reporters: [
defaultReporter({ reportTestResults: true, reportTestProgress: true }),
summaryReporter(),
],
plugins: [pageRoutePlugin(), takeScreenshotPlugin(), rollupReplacePlugin()],
testFramework: { config: { timeout: '10000' } },
};