Skip to content

Commit

Permalink
chore: use puppeteer launcher to run Chrome tests (#7701) (#7712)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Aug 29, 2024
1 parent 595e499 commit e37801b
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 19 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@web/test-runner": "^0.18.1",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"@web/test-runner-puppeteer": "^0.16.0",
"@web/test-runner-saucelabs": "^0.11.1",
"@web/test-runner-visual-regression": "^0.9.0",
"axios": "^1.4.0",
Expand All @@ -68,6 +69,9 @@
"stylelint-config-vaadin": "^1.0.0-alpha.1",
"typescript": "^5.1.6"
},
"resolutions": {
"puppeteer": "23.2.0"
},
"lint-staged": {
"*.{js,ts}": [
"eslint --fix",
Expand Down
4 changes: 2 additions & 2 deletions web-test-runner-it.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-env node */
const { chromeLauncher } = require('@web/test-runner-chrome');
const { puppeteerLauncher } = require('@web/test-runner-puppeteer');
const { createIntegrationTestsConfig } = require('./wtr-utils.js');
const devServerConfig = require('./web-dev-server.config.js');

const unitTestsConfig = createIntegrationTestsConfig({
browsers: [
chromeLauncher({
puppeteerLauncher({
launchOptions: {
headless: 'shell',
},
Expand Down
4 changes: 2 additions & 2 deletions web-test-runner-snapshots.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-env node */
const { chromeLauncher } = require('@web/test-runner-chrome');
const { puppeteerLauncher } = require('@web/test-runner-puppeteer');
const { createSnapshotTestsConfig } = require('./wtr-utils.js');

module.exports = createSnapshotTestsConfig({
browsers: [
chromeLauncher({
puppeteerLauncher({
launchOptions: {
headless: 'shell',
},
Expand Down
4 changes: 2 additions & 2 deletions web-test-runner.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-env node */
const { chromeLauncher } = require('@web/test-runner-chrome');
const { puppeteerLauncher } = require('@web/test-runner-puppeteer');
const { createUnitTestsConfig } = require('./wtr-utils.js');
const devServerConfig = require('./web-dev-server.config.js');

const unitTestsConfig = createUnitTestsConfig({
browsers: [
chromeLauncher({
puppeteerLauncher({
launchOptions: {
headless: 'shell',
},
Expand Down
Loading

0 comments on commit e37801b

Please sign in to comment.