From 08d2984513d8d2a78f8b56c921e7735476ef5f65 Mon Sep 17 00:00:00 2001 From: Luis E <35935591+luisecm@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:47:24 -0600 Subject: [PATCH] update(ci): upgrade image docker (#207) --- .github/workflows/playwright.yml | 9 +++++++-- package-lock.json | 28 ++++++++++++++++------------ package.json | 2 +- playwright.ci.config.ts | 6 ++++-- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index f907de9..e9d88a8 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -18,7 +18,8 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.48.0-jammy + image: mcr.microsoft.com/playwright:v1.49.1-noble + options: --user 1001 strategy: fail-fast: false matrix: @@ -34,6 +35,9 @@ jobs: with: path: automated-tests + - name: Configure Git safe directory + run: git config --global --add safe.directory '/__w/automated-tests-web/automated-tests-web' + - name: Setup Node.js for Uplink Web 🔨 uses: actions/setup-node@v4 with: @@ -71,7 +75,8 @@ jobs: needs: test runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.48.0-jammy + image: mcr.microsoft.com/playwright:v1.49.1-noble + options: --user 1001 steps: - name: Download Blob Report from Desktop uses: actions/download-artifact@v4 diff --git a/package-lock.json b/package-lock.json index bc053e1..7f61968 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ }, "devDependencies": { "@faker-js/faker": "^8.4.1", - "@playwright/test": "^1.48.0", + "@playwright/test": "^1.49.1", "@types/node": "^20.14.2", "allure-playwright": "^3.0.0-beta.7", "prettier": "3.2.5", @@ -93,11 +93,12 @@ } }, "node_modules/@playwright/test": { - "version": "1.48.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.48.0.tgz", - "integrity": "sha512-W5lhqPUVPqhtc/ySvZI5Q8X2ztBOUgZ8LbAFy0JQgrXZs2xaILrUcNO3rQjwbLPfGK13+rZsDa1FpG+tqYkT5w==", + "version": "1.49.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.49.1.tgz", + "integrity": "sha512-Ky+BVzPz8pL6PQxHqNRW1k3mIyv933LML7HktS8uik0bUXNCdPhoS/kLihiO1tMf/egaJb4IutXd7UywvXEW+g==", + "license": "Apache-2.0", "dependencies": { - "playwright": "1.48.0" + "playwright": "1.49.1" }, "bin": { "playwright": "cli.js" @@ -189,6 +190,7 @@ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -226,11 +228,12 @@ } }, "node_modules/playwright": { - "version": "1.48.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.48.0.tgz", - "integrity": "sha512-qPqFaMEHuY/ug8o0uteYJSRfMGFikhUysk8ZvAtfKmUK3kc/6oNl/y3EczF8OFGYIi/Ex2HspMfzYArk6+XQSA==", + "version": "1.49.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.49.1.tgz", + "integrity": "sha512-VYL8zLoNTBxVOrJBbDuRgDWa3i+mfQgDTrL8Ah9QXZ7ax4Dsj0MSq5bYgytRnDVVe+njoKnfsYkH3HzqVj5UZA==", + "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.48.0" + "playwright-core": "1.49.1" }, "bin": { "playwright": "cli.js" @@ -243,9 +246,10 @@ } }, "node_modules/playwright-core": { - "version": "1.48.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.48.0.tgz", - "integrity": "sha512-RBvzjM9rdpP7UUFrQzRwR8L/xR4HyC1QXMzGYTbf1vjw25/ya9NRAVnXi/0fvFopjebvyPzsmoK58xxeEOaVvA==", + "version": "1.49.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.49.1.tgz", + "integrity": "sha512-BzmpVcs4kE2CH15rWfzpjzVGhWERJfmnXmniSyKeRZUs9Ws65m+RGIi7mjJK/euCegfn3i7jvqWeWyHe9y3Vgg==", + "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" }, diff --git a/package.json b/package.json index ffc81cc..3029a62 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "license": "MIT", "devDependencies": { "@faker-js/faker": "^8.4.1", - "@playwright/test": "^1.48.0", + "@playwright/test": "^1.49.1", "@types/node": "^20.14.2", "allure-playwright": "^3.0.0-beta.7", "prettier": "3.2.5", diff --git a/playwright.ci.config.ts b/playwright.ci.config.ts index 46fdd91..d7b16ea 100644 --- a/playwright.ci.config.ts +++ b/playwright.ci.config.ts @@ -34,7 +34,7 @@ export default defineConfig({ timeout: 60000, use: { /* Base URL to use in actions like `await page.goto('/')`. */ - baseURL: "http://localhost:5173/", + baseURL: "http://127.0.0.1:5173", /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ testIdAttribute: "data-cy", @@ -94,10 +94,12 @@ export default defineConfig({ // }, ], - // Run your local dev server before starting the tests + //Run your local dev server before starting the tests webServer: { command: "cd .. && npm run dev", url: "http://127.0.0.1:5173", reuseExistingServer: !process.env.CI, + stdout: "pipe", + timeout: 120 * 1000, }, });