Skip to content

Commit c08ed17

Browse files
author
Pedro Abreu
committed
upgrade playwright to 1.55
Signed-off-by: Pedro Abreu <[email protected]>
1 parent b63c54e commit c08ed17

File tree

5 files changed

+30
-24
lines changed

5 files changed

+30
-24
lines changed

testing/PlaywrightContainerFile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ WORKDIR /test-runner
2626

2727
COPY package.json yarn.lock ./
2828
RUN corepack enable && \
29-
yarn install --frozen-lockfile --ignore-scripts && \
30-
npx playwright install --with-deps
31-
29+
yarn install --frozen-lockfile --ignore-scripts
3230

3331
COPY . .
3432

testing/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"license": "ISC",
1414
"description": "",
1515
"devDependencies": {
16-
"playwright": "1.54.2",
17-
"@playwright/test": "1.54.2",
16+
"playwright": "1.55.0",
17+
"@playwright/test": "1.55.0",
1818
"@types/node": "^20.0.0",
1919
"typescript": "^5.8.2"
2020
},

testing/playwright.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,21 @@ export default defineConfig({
88
testDir: './playwright/e2e',
99
timeout: process.env.JENKINS ? 15 * 60_000 : 60_000,
1010
fullyParallel: true,
11-
workers: process.env.CI ? 1 : 3,
11+
workers: 3,
1212

1313
retries: process.env.GITHUB_ACTIONS ? 3 : 0,
1414

15+
reporter: [['list'], ['html', { open: 'never' }]],
16+
1517
use: {
1618
actionTimeout: 20_000,
1719
navigationTimeout: 20_000,
1820
},
1921

22+
expect: {
23+
timeout: 20_000,
24+
},
25+
2026
projects: [
2127
{
2228
name: 'chromium',
@@ -30,6 +36,7 @@ export default defineConfig({
3036
viewport: { width: 1920, height: 1080 },
3137
screenshot: 'only-on-failure',
3238
video: 'retain-on-failure',
39+
trace: 'retain-on-failure',
3340
// Use data-testid to match actual rendered HTML
3441
testIdAttribute: 'data-testid',
3542
ignoreHTTPSErrors: true,

testing/run-tests.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ echo " Git Commit: ${IMAGE_GIT_COMMIT:-unknown}"
3434
echo " Build Date: ${IMAGE_BUILD_DATE:-unknown}"
3535
echo ""
3636

37+
cd /test-runner
38+
3739
log "Validating environment and setting up credentials..."
3840

3941
if [ -z "$CLUSTER_NAME" ]; then
@@ -72,9 +74,8 @@ echo " Playwright Args: ${TEST_ARGS}"
7274

7375
set +e
7476
echo "Starting Playwright test execution..."
75-
npx playwright test \
76-
${TEST_ARGS} \
77-
--reporter=list,junit,html
77+
yarn playwright test \
78+
${TEST_ARGS}
7879
TEST_EXIT_CODE=$?
7980
set -e
8081

testing/yarn.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
"@kubev2v/[email protected]":
66
version "0.0.22"
7-
resolved "https://registry.yarnpkg.com/@kubev2v/types/-/types-0.0.22.tgz#582091a79cdb159be7789dcd62a2632542592c60"
7+
resolved "https://registry.npmjs.org/@kubev2v/types/-/types-0.0.22.tgz"
88
integrity sha512-1s2RhE9zPf2esJzcy0KCbcso4SJE2Mp9ObV3We0c8KCGvp8i42xCxBIV9vMDiM14ZRlCUMo7gGB9GdZvexDURg==
99

10-
"@playwright/test@1.54.2":
11-
version "1.54.2"
12-
resolved "https://registry.npmjs.org/@playwright/test/-/test-1.54.2.tgz"
13-
integrity sha512-A+znathYxPf+72riFd1r1ovOLqsIIB0jKIoPjyK2kqEIe30/6jF6BC7QNluHuwUmsD2tv1XZVugN8GqfTMOxsA==
10+
"@playwright/test@1.55.0":
11+
version "1.55.0"
12+
resolved "https://registry.npmjs.org/@playwright/test/-/test-1.55.0.tgz"
13+
integrity sha512-04IXzPwHrW69XusN/SIdDdKZBzMfOT9UNT/YiJit/xpy2VuAoB8NHc8Aplb96zsWDddLnbkPL3TsmrS04ZU2xQ==
1414
dependencies:
15-
playwright "1.54.2"
15+
playwright "1.55.0"
1616

1717
"@types/node@^20.0.0":
1818
version "20.19.9"
@@ -26,17 +26,17 @@ [email protected]:
2626
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
2727
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
2828

29-
playwright-core@1.54.2:
30-
version "1.54.2"
31-
resolved "https://registry.npmjs.org/playwright-core/-/playwright-core-1.54.2.tgz"
32-
integrity sha512-n5r4HFbMmWsB4twG7tJLDN9gmBUeSPcsBZiWSE4DnYz9mJMAFqr2ID7+eGC9kpEnxExJ1epttwR59LEWCk8mtA==
29+
playwright-core@1.55.0:
30+
version "1.55.0"
31+
resolved "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.0.tgz"
32+
integrity sha512-GvZs4vU3U5ro2nZpeiwyb0zuFaqb9sUiAJuyrWpcGouD8y9/HLgGbNRjIph7zU9D3hnPaisMl9zG9CgFi/biIg==
3333

34-
playwright@1.54.2:
35-
version "1.54.2"
36-
resolved "https://registry.npmjs.org/playwright/-/playwright-1.54.2.tgz"
37-
integrity sha512-Hu/BMoA1NAdRUuulyvQC0pEqZ4vQbGfn8f7wPXcnqQmM+zct9UliKxsIkLNmz/ku7LElUNqmaiv1TG/aL5ACsw==
34+
playwright@1.55.0:
35+
version "1.55.0"
36+
resolved "https://registry.npmjs.org/playwright/-/playwright-1.55.0.tgz"
37+
integrity sha512-sdCWStblvV1YU909Xqx0DhOjPZE4/5lJsIS84IfN9dAZfcl/CIZ5O8l3o0j7hPMjDvqoTF8ZUcc+i/GL5erstA==
3838
dependencies:
39-
playwright-core "1.54.2"
39+
playwright-core "1.55.0"
4040
optionalDependencies:
4141
fsevents "2.3.2"
4242

0 commit comments

Comments
 (0)