From 076ad0f298b47b83db0a2e6983faf77eedfdb2cd Mon Sep 17 00:00:00 2001 From: Robert Main <50675045+rmainwork@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:23:20 -0400 Subject: [PATCH] Version bump playwright and NPM (#2585) * Update playwright version to fix e2e runner An outdated version of playwright had dependencies that were no longer present in the package repositories for ubuntu@latest (noble). Downgrading to ubuntu 22.04 temporarily to see if playwright would install on 22.04 confirmed this. The solution ended up being to upgrade playwright so that we can continue to use ubuntu@latest * Update npm to latest --- .github/workflows/playwright.yml | 4 ++-- package-lock.json | 31 ++++++++++++++++--------------- package.json | 2 +- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 00aa507bd5..ab629d38e4 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20 - - name: Install npm@8 - run: npm install --global npm@8 + - name: Install npm@latest + run: npm install --global npm@latest - name: Install dependencies run: npm ci - name: Install Playwright diff --git a/package-lock.json b/package-lock.json index 975d19050d..b511dbd668 100644 --- a/package-lock.json +++ b/package-lock.json @@ -139,7 +139,7 @@ "@hashicorp/platform-tools": "^0.10.0", "@hashicorp/platform-types": "^0.4.0", "@octokit/rest": "^19.0.5", - "@playwright/test": "^1.28.0", + "@playwright/test": "^1.48.0", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^14.2.1", "@testing-library/user-event": "^14.4.3", @@ -7944,18 +7944,18 @@ "dev": true }, "node_modules/@playwright/test": { - "version": "1.43.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.43.1.tgz", - "integrity": "sha512-HgtQzFgNEEo4TE22K/X7sYTYNqEMMTZmFS8kTq6m8hXj+m1D8TgwgIbumHddJa9h4yl4GkKb8/bgAl2+g7eDgA==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.48.0.tgz", + "integrity": "sha512-W5lhqPUVPqhtc/ySvZI5Q8X2ztBOUgZ8LbAFy0JQgrXZs2xaILrUcNO3rQjwbLPfGK13+rZsDa1FpG+tqYkT5w==", "devOptional": true, "dependencies": { - "playwright": "1.43.1" + "playwright": "1.48.0" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/@radix-ui/primitive": { @@ -33068,39 +33068,40 @@ } }, "node_modules/playwright": { - "version": "1.43.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.43.1.tgz", - "integrity": "sha512-V7SoH0ai2kNt1Md9E3Gwas5B9m8KR2GVvwZnAI6Pg0m3sh7UvgiYhRrhsziCmqMJNouPckiOhk8T+9bSAK0VIA==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.48.0.tgz", + "integrity": "sha512-qPqFaMEHuY/ug8o0uteYJSRfMGFikhUysk8ZvAtfKmUK3kc/6oNl/y3EczF8OFGYIi/Ex2HspMfzYArk6+XQSA==", "devOptional": true, "dependencies": { - "playwright-core": "1.43.1" + "playwright-core": "1.48.0" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" }, "optionalDependencies": { "fsevents": "2.3.2" } }, "node_modules/playwright-core": { - "version": "1.43.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.43.1.tgz", - "integrity": "sha512-EI36Mto2Vrx6VF7rm708qSnesVQKbxEWvPrfA1IPY6HgczBplDx7ENtx+K2n4kJ41sLLkuGfmb0ZLSSXlDhqPg==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.48.0.tgz", + "integrity": "sha512-RBvzjM9rdpP7UUFrQzRwR8L/xR4HyC1QXMzGYTbf1vjw25/ya9NRAVnXi/0fvFopjebvyPzsmoK58xxeEOaVvA==", "devOptional": true, "bin": { "playwright-core": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/playwright/node_modules/fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, "hasInstallScript": true, "optional": true, "os": [ diff --git a/package.json b/package.json index d3718e553e..8e014c1c2f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@hashicorp/platform-tools": "^0.10.0", "@hashicorp/platform-types": "^0.4.0", "@octokit/rest": "^19.0.5", - "@playwright/test": "^1.28.0", + "@playwright/test": "^1.48.0", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^14.2.1", "@testing-library/user-event": "^14.4.3",