[test] Move playwright installation inside test:playwright script

This commit is contained in:
Faisal Salman 2025-02-15 13:37:56 +07:00
parent 5413a9888d
commit 6f0191c11b
2 changed files with 1 additions and 2 deletions

View File

@ -19,5 +19,4 @@ jobs:
- name: Run the test - name: Run the test
run: | run: |
npm ci npm ci
npx playwright install --with-deps
npm test npm test

View File

@ -209,7 +209,7 @@
"test:jshint": "jshint src/main", "test:jshint": "jshint src/main",
"test:lockfile-lint": "npx lockfile-lint -p package-lock.json", "test:lockfile-lint": "npx lockfile-lint -p package-lock.json",
"test:mocha": "mocha test/unit", "test:mocha": "mocha test/unit",
"test:playwright": "playwright test test/e2e --browser all" "test:playwright": "npx playwright install && playwright test test/e2e --browser all"
}, },
"dependencies": { "dependencies": {
"detect-europe-js": "^0.1.2", "detect-europe-js": "^0.1.2",