From 770c22327d60b82f42872d10723bdf8d86ad583c Mon Sep 17 00:00:00 2001 From: Marcus Felling Date: Wed, 15 Nov 2023 10:08:03 -0800 Subject: [PATCH] update to Playwright 1.39 (#331) * update to Playwright 1.39 --- .../contoso-traders-cloud-testing.yml | 2 +- .devcontainer/devcontainer.json | 2 +- .../contoso-traders-cloud-testing.yml | 5 +- .../package-lock.json | 64 +++++++++++++------ src/ContosoTraders.Ui.Website/package.json | 2 +- 5 files changed, 48 insertions(+), 27 deletions(-) diff --git a/.azurepipelines/contoso-traders-cloud-testing.yml b/.azurepipelines/contoso-traders-cloud-testing.yml index 4430c51f..ab54ba29 100644 --- a/.azurepipelines/contoso-traders-cloud-testing.yml +++ b/.azurepipelines/contoso-traders-cloud-testing.yml @@ -715,7 +715,7 @@ stages: - job: playwright_tests_ui dependsOn: [provision] - container: mcr.microsoft.com/playwright:v1.36.2-jammy + container: mcr.microsoft.com/playwright:v1.39.0-jammy variables: APIURLSHOPPINGCART: $[ dependencies.provision.outputs['getCartsApiEndpoint.cartsApiEndpoint'] ] APIURL: $[ dependencies.provision.outputs['getProductsApiEndpoint.productsApiEndpoint'] ] diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2bc46c5a..87f2cb88 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Playwright", - "image": "mcr.microsoft.com/playwright:v1.36.2-jammy", + "image": "mcr.microsoft.com/playwright:v1.39.0-jammy", "features": { "ghcr.io/devcontainers/features/node:1": { "nodeGypDependencies": true, diff --git a/.github/workflows/contoso-traders-cloud-testing.yml b/.github/workflows/contoso-traders-cloud-testing.yml index 1ccf9894..5f9bf0bd 100644 --- a/.github/workflows/contoso-traders-cloud-testing.yml +++ b/.github/workflows/contoso-traders-cloud-testing.yml @@ -626,7 +626,7 @@ jobs: timeout-minutes: 20 runs-on: ubuntu-22.04 container: - image: mcr.microsoft.com/playwright:v1.36.2-jammy + image: mcr.microsoft.com/playwright:v1.39.0-jammy defaults: run: working-directory: src/ContosoTraders.Ui.Website @@ -658,8 +658,7 @@ jobs: run: HOME=/root npx playwright test - name: upload playwright report uses: actions/upload-artifact@v3 - # only upload report if tests failed - if: steps.test.outcome != 'success' + if: always() with: name: playwright-report path: src/ContosoTraders.Ui.Website/playwright-report/ diff --git a/src/ContosoTraders.Ui.Website/package-lock.json b/src/ContosoTraders.Ui.Website/package-lock.json index f190b142..148df3e6 100644 --- a/src/ContosoTraders.Ui.Website/package-lock.json +++ b/src/ContosoTraders.Ui.Website/package-lock.json @@ -27,7 +27,7 @@ "yup": "^1.2.0" }, "devDependencies": { - "@playwright/test": "1.36", + "@playwright/test": "^1.39.0", "@types/node": "^18.11.18", "babel-plugin-macros": "^3.1.0", "csv-parse": "^5.5.0", @@ -3540,22 +3540,18 @@ } }, "node_modules/@playwright/test": { - "version": "1.36.2", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.36.2.tgz", - "integrity": "sha512-2rVZeyPRjxfPH6J0oGJqE8YxiM1IBRyM8hyrXYK7eSiAqmbNhxwcLa7dZ7fy9Kj26V7FYia5fh9XJRq4Dqme+g==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.39.0.tgz", + "integrity": "sha512-3u1iFqgzl7zr004bGPYiN/5EZpRUSFddQBra8Rqll5N0/vfpqlP9I9EXqAoGacuAbX6c9Ulg/Cjqglp5VkK6UQ==", "dev": true, "dependencies": { - "@types/node": "*", - "playwright-core": "1.36.2" + "playwright": "1.39.0" }, "bin": { "playwright": "cli.js" }, "engines": { "node": ">=16" - }, - "optionalDependencies": { - "fsevents": "2.3.2" } }, "node_modules/@pmmmwh/react-refresh-webpack-plugin": { @@ -12654,10 +12650,28 @@ "node": ">=4" } }, + "node_modules/playwright": { + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", + "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", + "dev": true, + "dependencies": { + "playwright-core": "1.39.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, "node_modules/playwright-core": { - "version": "1.36.2", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.36.2.tgz", - "integrity": "sha512-sQYZt31dwkqxOrP7xy2ggDfEzUxM1lodjhsQ3NMMv5uGTRDsLxU0e4xf4wwMkF2gplIxf17QMBCodSFgm6bFVQ==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", + "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", "dev": true, "bin": { "playwright-core": "cli.js" @@ -19684,14 +19698,12 @@ } }, "@playwright/test": { - "version": "1.36.2", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.36.2.tgz", - "integrity": "sha512-2rVZeyPRjxfPH6J0oGJqE8YxiM1IBRyM8hyrXYK7eSiAqmbNhxwcLa7dZ7fy9Kj26V7FYia5fh9XJRq4Dqme+g==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.39.0.tgz", + "integrity": "sha512-3u1iFqgzl7zr004bGPYiN/5EZpRUSFddQBra8Rqll5N0/vfpqlP9I9EXqAoGacuAbX6c9Ulg/Cjqglp5VkK6UQ==", "dev": true, "requires": { - "@types/node": "*", - "fsevents": "2.3.2", - "playwright-core": "1.36.2" + "playwright": "1.39.0" } }, "@pmmmwh/react-refresh-webpack-plugin": { @@ -26502,10 +26514,20 @@ } } }, + "playwright": { + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", + "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", + "dev": true, + "requires": { + "fsevents": "2.3.2", + "playwright-core": "1.39.0" + } + }, "playwright-core": { - "version": "1.36.2", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.36.2.tgz", - "integrity": "sha512-sQYZt31dwkqxOrP7xy2ggDfEzUxM1lodjhsQ3NMMv5uGTRDsLxU0e4xf4wwMkF2gplIxf17QMBCodSFgm6bFVQ==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", + "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", "dev": true }, "popmotion": { diff --git a/src/ContosoTraders.Ui.Website/package.json b/src/ContosoTraders.Ui.Website/package.json index 61265a84..eecf7ed7 100644 --- a/src/ContosoTraders.Ui.Website/package.json +++ b/src/ContosoTraders.Ui.Website/package.json @@ -45,7 +45,7 @@ ] }, "devDependencies": { - "@playwright/test": "1.36", + "@playwright/test": "^1.39.0", "@types/node": "^18.11.18", "babel-plugin-macros": "^3.1.0", "csv-parse": "^5.5.0",