From d08e49768602d183b317002adc0bed27f8475dae Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:19:01 +0700 Subject: [PATCH] fix: playwright installation command (#53900) --- .github/workflows/e2e-playwright.yml | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-playwright.yml b/.github/workflows/e2e-playwright.yml index 8dc1cdd2f3f..b2cb3d21384 100644 --- a/.github/workflows/e2e-playwright.yml +++ b/.github/workflows/e2e-playwright.yml @@ -136,9 +136,7 @@ jobs: run: npm i -g pm2 - name: Install playwright dependencies - run: | - npx playwright install - npx playwright install-deps + run: npx playwright install --with-deps - name: Run playwright tests run: | diff --git a/package.json b/package.json index 6304b171682..0c027651872 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "lint:prettier": "prettier --list-different .", "reload:server": "pm2 reload api-server/ecosystem.config.js", "preseed": "npm-run-all create:shared", - "playwright:install-build-tools": "cd ./e2e && npm i && npx playwright install && npx playwright install-deps", + "playwright:install-build-tools": "npx playwright install --with-deps", "playwright:install-build-tools-linux": "sh ./playwright-install.sh", "rename-challenges": "ts-node tools/challenge-helper-scripts/rename-challenge-files.ts", "seed": "pnpm seed:surveys && pnpm seed:exams && cross-env DEBUG=fcc:* node ./tools/scripts/seed/seed-demo-user",