Skip to content

Commit 9a98fc1

Browse files
committed
chore: add Playwright browser configurations for Chromium and Firefox in web-test-runner setup
1 parent 09629ae commit 9a98fc1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

web-test-runner.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ import { visualRegressionPlugin } from '@web/test-runner-visual-regression/plugi
33
export default {
44
files: 'test/**/*.test.js',
55
nodeResolve: true,
6+
browsers: [
7+
playwrightLauncher({
8+
product: 'chromium',
9+
launchOptions: {
10+
args: ['--no-sandbox', '--disable-setuid-sandbox'],
11+
timeout: 20000
12+
}
13+
}),
14+
playwrightLauncher({ product: 'firefox' }),
15+
],
616
middleware: [
717
function rewriteBase(context, next) {
818
if (context.url.indexOf('/base') === 0) {

0 commit comments

Comments
 (0)