From 5e123a4361acdf63a966043ee7029073b81c8196 Mon Sep 17 00:00:00 2001 From: allison-truhlar Date: Thu, 5 Sep 2024 09:47:04 -0400 Subject: [PATCH] chore: update GH action cmd to install latest playwright; install latest playwright as dev dep --- .github/workflows/build.yml | 8 ++++---- package-lock.json | 31 ++++++++++++++++++++++++------- package.json | 1 + 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 542f3536d..15d49b80f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,10 +48,10 @@ jobs: - run: npm publish --dry-run working-directory: dist/package - uses: ./.github/actions/setup-firefox - - name: Installd playwright - run: npx playwright install - - name: Install dependencies - run: npx playwright install-deps chromium + - name: Install playwright + run: | + npm install -D @playwright/test@latest + npx playwright install-deps chromium - name: Run JavaScript tests (including WebGL) run: npm test - name: Run JavaScript tests (excluding WebGL) diff --git a/package-lock.json b/package-lock.json index 8f5c752f5..c37a79088 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ }, "devDependencies": { "@playwright/browser-chromium": "^1.46.0", + "@playwright/test": "^1.46.1", "@types/codemirror": "5.60.15", "@types/gl-matrix": "^2.4.5", "@types/lodash-es": "^4.17.12", @@ -760,6 +761,22 @@ "node": ">=18" } }, + "node_modules/@playwright/test": { + "version": "1.46.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.46.1.tgz", + "integrity": "sha512-Fq6SwLujA/DOIvNC2EL/SojJnkKf/rAwJ//APpJJHRyMi1PdKrY3Az+4XNQ51N4RTbItbIByQ0jgd1tayq1aeA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright": "1.46.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/@polka/url": { "version": "1.0.0-next.24", "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.24.tgz", @@ -10066,13 +10083,13 @@ } }, "node_modules/playwright": { - "version": "1.45.3", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.45.3.tgz", - "integrity": "sha512-QhVaS+lpluxCaioejDZ95l4Y4jSFCsBvl2UZkpeXlzxmqS+aABr5c82YmfMHrL6x27nvrvykJAFpkzT2eWdJww==", + "version": "1.46.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.46.1.tgz", + "integrity": "sha512-oPcr1yqoXLCkgKtD5eNUPLiN40rYEM39odNpIb6VE6S7/15gJmA1NzVv6zJYusV0e7tzvkU/utBFNa/Kpxmwng==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.45.3" + "playwright-core": "1.46.1" }, "bin": { "playwright": "cli.js" @@ -10085,9 +10102,9 @@ } }, "node_modules/playwright-core": { - "version": "1.45.3", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.45.3.tgz", - "integrity": "sha512-+ym0jNbcjikaOwwSZycFbwkWgfruWvYlJfThKYAlImbxUgdWFO2oW70ojPm4OpE4t6TAo2FY/smM+hpVTtkhDA==", + "version": "1.46.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.46.1.tgz", + "integrity": "sha512-h9LqIQaAv+CYvWzsZ+h3RsrqCStkBHlgo6/TJlFst3cOTlLghBQlJwPOZKQJTKNaD3QIB7aAVQ+gfWbN3NXB7A==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/package.json b/package.json index 2f9b7ccf4..8f767322b 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ }, "devDependencies": { "@playwright/browser-chromium": "^1.46.0", + "@playwright/test": "^1.46.1", "@types/codemirror": "5.60.15", "@types/gl-matrix": "^2.4.5", "@types/lodash-es": "^4.17.12",