Skip to content

Commit

Permalink
fix(playwright): adds npx playwright install to playwright npm scripts
Browse files Browse the repository at this point in the history
playwright apparently refuses to self-install browsers in certain situations, so let's make sure to `npx playwright install` before attempting any tests.
  • Loading branch information
dgrebb committed Nov 26, 2023
1 parent 48bd732 commit ce0f2c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"dev-compare": "webpack-dev-server --content-base ./compare/output --config ./compare/webpack.config.js",
"integration-test": "rm -rf newdir && mkdir newdir && cd newdir && node ../cli/index.js init && node ../cli/index.js reference && node ../cli/index.js test && node -e \"require('../')('test')\"",
"smoke-test": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features",
"smoke-test-playwright": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features_pw",
"smoke-test-playwright": "npx playwright install && cd test/configs/ && node ../../cli/index.js test --config=backstop_features_pw",
"smoke-test-docker": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features --docker",
"smoke-test-docker-playwright": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features_pw --docker",
"sanity-test": "cd test/configs/ && node ../../cli/index.js test",
"sanity-test-playwright": "cd test/configs/ && node ../../cli/index.js test --config=playwright",
"sanity-test-playwright": "npx playwright install && cd test/configs/ && node ../../cli/index.js test --config=playwright",
"sanity-test-docker": "cd test/configs/ && node ../../cli/index.js test --docker",
"sanity-test-playwright-docker": "cd test/configs/ && node ../../cli/index.js test --config=playwright --docker",
"kill-zombies": "pkill -f \"(chrome)?(--headless)\"",
Expand Down

0 comments on commit ce0f2c7

Please sign in to comment.