Skip to content

Commit

Permalink
update(ci): upgrade image docker (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm authored Dec 13, 2024
1 parent 883a339 commit 08d2984
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 17 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
28 changes: 16 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions playwright.ci.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
},
});

0 comments on commit 08d2984

Please sign in to comment.