Skip to content

Commit

Permalink
tests: fix tests by using Chrome --headless=old
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Sep 17, 2024
1 parent f6f99b3 commit f6c6c49
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { importMapsPlugin } from '@web/dev-server-import-maps';
import { chromeLauncher } from '@web/test-runner';

export default {
nodeResolve: true,
Expand All @@ -23,4 +24,5 @@ export default {
report: true,
include: ['src/**/*'],
},
browsers: [chromeLauncher({ launchOptions: { args: ['--headless=old'] } })],
};
2 changes: 2 additions & 0 deletions packages/mux-audio/test/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { importMapsPlugin } from '@web/dev-server-import-maps';
import { chromeLauncher } from '@web/test-runner';

export default {
nodeResolve: true,
Expand All @@ -23,4 +24,5 @@ export default {
report: true,
include: ['src/**/*'],
},
browsers: [chromeLauncher({ launchOptions: { args: ['--headless=old'] } })],
};
2 changes: 2 additions & 0 deletions packages/mux-player/test/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { importMapsPlugin } from '@web/dev-server-import-maps';
import { chromeLauncher } from '@web/test-runner';
import { playwrightLauncher } from '@web/test-runner-playwright';

const config = {
Expand All @@ -25,6 +26,7 @@ const config = {
include: ['src/**/*'],
},
testsFinishTimeout: 600000,
browsers: [chromeLauncher({ launchOptions: { args: ['--headless=old'] } })],
};

if (process.argv.some((arg) => arg.includes('--all'))) {
Expand Down
1 change: 1 addition & 0 deletions packages/mux-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@open-wc/testing": "^4.0.0",
"@web/dev-server-esbuild": "^1.0.2",
"@web/dev-server-import-maps": "^0.2.1",
"@web/test-runner": "^0.18.2",
"copyfiles": "^2.4.1",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.19.8",
Expand Down
2 changes: 2 additions & 0 deletions packages/mux-uploader/test/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { importMapsPlugin } from '@web/dev-server-import-maps';
import { chromeLauncher } from '@web/test-runner';

export default {
testFramework: {
Expand Down Expand Up @@ -29,4 +30,5 @@ export default {
report: true,
include: ['src/**/*'],
},
browsers: [chromeLauncher({ launchOptions: { args: ['--headless=old'] } })],
};
2 changes: 2 additions & 0 deletions packages/mux-video/test/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { importMapsPlugin } from '@web/dev-server-import-maps';
import { chromeLauncher } from '@web/test-runner';

export default {
nodeResolve: true,
Expand All @@ -23,4 +24,5 @@ export default {
report: true,
include: ['src/**/*'],
},
browsers: [chromeLauncher({ launchOptions: { args: ['--headless=old'] } })],
};
2 changes: 2 additions & 0 deletions packages/playback-core/test/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { importMapsPlugin } from '@web/dev-server-import-maps';
import { chromeLauncher } from '@web/test-runner';

export default {
nodeResolve: true,
Expand All @@ -23,4 +24,5 @@ export default {
report: true,
include: ['src/**/*'],
},
browsers: [chromeLauncher({ launchOptions: { args: ['--headless=old'] } })],
};

0 comments on commit f6c6c49

Please sign in to comment.