From 315287b3ad59489c56e2e55830e3fe3714797edf Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 28 Jul 2025 10:29:26 +0200 Subject: [PATCH 1/4] docs: remove `-gv` test cli option (#36807) --- docs/src/test-cli-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/test-cli-js.md b/docs/src/test-cli-js.md index 73e79c3fca835..693522e0acafa 100644 --- a/docs/src/test-cli-js.md +++ b/docs/src/test-cli-js.md @@ -86,7 +86,7 @@ npx playwright test --ui | `--fully-parallel` | Run all tests in parallel (default: false). | | `--global-timeout ` | Maximum time this test suite can run in milliseconds (default: unlimited). | | `-g ` or `--grep ` | Only run tests matching this regular expression (default: ".*"). | -| `-gv ` or `--grep-invert ` | Only run tests that do not match this regular expression. | +| `--grep-invert ` | Only run tests that do not match this regular expression. | | `--headed` | Run tests in headed browsers (default: headless). | | `--ignore-snapshots` | Ignore screenshot and snapshot expectations. | | `-j ` or `--workers ` | Number of concurrent workers or percentage of logical CPU cores, use 1 to run in a single worker (default: 50%). | From 18f147a8327bce3713d36e15ba7a7b32eb20e990 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 28 Jul 2025 10:29:44 +0200 Subject: [PATCH 2/4] chore: retry stable browsers up to 3 times (#36789) --- packages/playwright-core/bin/reinstall_chrome_beta_mac.sh | 2 +- packages/playwright-core/bin/reinstall_chrome_stable_mac.sh | 2 +- packages/playwright-core/bin/reinstall_msedge_beta_mac.sh | 2 +- packages/playwright-core/bin/reinstall_msedge_dev_mac.sh | 2 +- packages/playwright-core/bin/reinstall_msedge_stable_mac.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/playwright-core/bin/reinstall_chrome_beta_mac.sh b/packages/playwright-core/bin/reinstall_chrome_beta_mac.sh index b6e1990cfc8b3..c563c81de95ff 100755 --- a/packages/playwright-core/bin/reinstall_chrome_beta_mac.sh +++ b/packages/playwright-core/bin/reinstall_chrome_beta_mac.sh @@ -4,7 +4,7 @@ set -x rm -rf "/Applications/Google Chrome Beta.app" cd /tmp -curl -o ./googlechromebeta.dmg -k https://dl.google.com/chrome/mac/universal/beta/googlechromebeta.dmg +curl --retry 3 -o ./googlechromebeta.dmg -k https://dl.google.com/chrome/mac/universal/beta/googlechromebeta.dmg hdiutil attach -nobrowse -quiet -noautofsck -noautoopen -mountpoint /Volumes/googlechromebeta.dmg ./googlechromebeta.dmg cp -pR "/Volumes/googlechromebeta.dmg/Google Chrome Beta.app" /Applications hdiutil detach /Volumes/googlechromebeta.dmg diff --git a/packages/playwright-core/bin/reinstall_chrome_stable_mac.sh b/packages/playwright-core/bin/reinstall_chrome_stable_mac.sh index 91d826c0148e1..035fa863f161e 100755 --- a/packages/playwright-core/bin/reinstall_chrome_stable_mac.sh +++ b/packages/playwright-core/bin/reinstall_chrome_stable_mac.sh @@ -4,7 +4,7 @@ set -x rm -rf "/Applications/Google Chrome.app" cd /tmp -curl -o ./googlechrome.dmg -k https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg +curl --retry 3 -o ./googlechrome.dmg -k https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg hdiutil attach -nobrowse -quiet -noautofsck -noautoopen -mountpoint /Volumes/googlechrome.dmg ./googlechrome.dmg cp -pR "/Volumes/googlechrome.dmg/Google Chrome.app" /Applications hdiutil detach /Volumes/googlechrome.dmg diff --git a/packages/playwright-core/bin/reinstall_msedge_beta_mac.sh b/packages/playwright-core/bin/reinstall_msedge_beta_mac.sh index 69c0602485afd..c03bb022643f2 100755 --- a/packages/playwright-core/bin/reinstall_msedge_beta_mac.sh +++ b/packages/playwright-core/bin/reinstall_msedge_beta_mac.sh @@ -3,7 +3,7 @@ set -e set -x cd /tmp -curl -o ./msedge_beta.pkg -k "$1" +curl --retry 3 -o ./msedge_beta.pkg -k "$1" # Note: there's no way to uninstall previously installed MSEdge. # However, running PKG again seems to update installation. sudo installer -pkg /tmp/msedge_beta.pkg -target / diff --git a/packages/playwright-core/bin/reinstall_msedge_dev_mac.sh b/packages/playwright-core/bin/reinstall_msedge_dev_mac.sh index 0ad05b0a2b2e9..9b664dadab4c6 100755 --- a/packages/playwright-core/bin/reinstall_msedge_dev_mac.sh +++ b/packages/playwright-core/bin/reinstall_msedge_dev_mac.sh @@ -3,7 +3,7 @@ set -e set -x cd /tmp -curl -o ./msedge_dev.pkg -k "$1" +curl --retry 3 -o ./msedge_dev.pkg -k "$1" # Note: there's no way to uninstall previously installed MSEdge. # However, running PKG again seems to update installation. sudo installer -pkg /tmp/msedge_dev.pkg -target / diff --git a/packages/playwright-core/bin/reinstall_msedge_stable_mac.sh b/packages/playwright-core/bin/reinstall_msedge_stable_mac.sh index b82cfb37cd203..7a72703c3e5e4 100755 --- a/packages/playwright-core/bin/reinstall_msedge_stable_mac.sh +++ b/packages/playwright-core/bin/reinstall_msedge_stable_mac.sh @@ -3,7 +3,7 @@ set -e set -x cd /tmp -curl -o ./msedge_stable.pkg -k "$1" +curl --retry 3 -o ./msedge_stable.pkg -k "$1" # Note: there's no way to uninstall previously installed MSEdge. # However, running PKG again seems to update installation. sudo installer -pkg /tmp/msedge_stable.pkg -target / From 50f25fcd01855a5e4019fd49f2326beb4cc176f2 Mon Sep 17 00:00:00 2001 From: Adam Gastineau Date: Mon, 28 Jul 2025 03:36:45 -0700 Subject: [PATCH 3/4] chore(html): fix extraneous doublequote in payload (#36796) --- packages/playwright/src/reporters/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright/src/reporters/html.ts b/packages/playwright/src/reporters/html.ts index cf72861604139..35d0443aa39d8 100644 --- a/packages/playwright/src/reporters/html.ts +++ b/packages/playwright/src/reporters/html.ts @@ -381,7 +381,7 @@ class HtmlBuilder { .pipe(fs.createWriteStream(filePath, { flags: 'a' })).on('close', f); }); }); - fs.appendFileSync(filePath, '"'); + fs.appendFileSync(filePath, ''); } private _addDataFile(fileName: string, data: any) { From 58e1f4ce4805011506edf25d7d83bb5a73d8a9de Mon Sep 17 00:00:00 2001 From: "microsoft-playwright-automation[bot]" <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 13:16:10 +0200 Subject: [PATCH 4/4] test: roll stable-test-runner to 1.55.0-alpha-2025-07-28 (#36811) Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com> --- .../stable-test-runner/package-lock.json | 46 +++++++++---------- .../stable-test-runner/package.json | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/playwright-test/stable-test-runner/package-lock.json b/tests/playwright-test/stable-test-runner/package-lock.json index 6772794b36c41..4a3fd854168ad 100644 --- a/tests/playwright-test/stable-test-runner/package-lock.json +++ b/tests/playwright-test/stable-test-runner/package-lock.json @@ -5,16 +5,16 @@ "packages": { "": { "dependencies": { - "@playwright/test": "^1.55.0-alpha-2025-07-21" + "@playwright/test": "^1.55.0-alpha-2025-07-28" } }, "node_modules/@playwright/test": { - "version": "1.55.0-alpha-2025-07-21", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.55.0-alpha-2025-07-21.tgz", - "integrity": "sha512-bHV0uYVbuPQGLOzTkgVEOhKPH1fGQglU7X8xDUgnsLWRQvFBQDboDV/5VPOAEIO9DNnD3OD2Uo9lbQeEDSZZaA==", + "version": "1.55.0-alpha-2025-07-28", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.55.0-alpha-2025-07-28.tgz", + "integrity": "sha512-CsrKhe7BWLdW8b/aXPd7Ppp/Kxt1fBxNmhXK5nh+MmDbOIXfqP+FW9UescP7rJ6TjPFGmoCgSnweEYzsBUVZUA==", "license": "Apache-2.0", "dependencies": { - "playwright": "1.55.0-alpha-2025-07-21" + "playwright": "1.55.0-alpha-2025-07-28" }, "bin": { "playwright": "cli.js" @@ -38,12 +38,12 @@ } }, "node_modules/playwright": { - "version": "1.55.0-alpha-2025-07-21", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.55.0-alpha-2025-07-21.tgz", - "integrity": "sha512-v2fg2XJiD4/Zt+ZFFHttWcHOyAFmbo4ZrFI+pvOT58m+b3hctwTdpkavBIWE0UXTgOXI75JekE00RdI+dbQ/3A==", + "version": "1.55.0-alpha-2025-07-28", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.55.0-alpha-2025-07-28.tgz", + "integrity": "sha512-Gw4T/f6h2XxTfNtmxEt+ruITF1MNERYJ/Jl1LcndbhhEYg9qQJGHgXiuiSgtf+pI9iuTgS7riijEdAcykV8D0g==", "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.55.0-alpha-2025-07-21" + "playwright-core": "1.55.0-alpha-2025-07-28" }, "bin": { "playwright": "cli.js" @@ -56,9 +56,9 @@ } }, "node_modules/playwright-core": { - "version": "1.55.0-alpha-2025-07-21", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.0-alpha-2025-07-21.tgz", - "integrity": "sha512-ETmLToOLpwn7ZsjwZH4hscRZ/4Gu5me+yMCv4o7ictTzmU56FtvteS6cund7Fc+FCCzspRUK5oLwmz+sPZugoA==", + "version": "1.55.0-alpha-2025-07-28", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.0-alpha-2025-07-28.tgz", + "integrity": "sha512-9gbt7wzEf/3b7AJrSiBiEDGh8QEK3u2ZInaxR1VsLPJLZXnClglw70bwi2UAfGlI85pyggIga4Rz5s682xeBTg==", "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" @@ -70,11 +70,11 @@ }, "dependencies": { "@playwright/test": { - "version": "1.55.0-alpha-2025-07-21", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.55.0-alpha-2025-07-21.tgz", - "integrity": "sha512-bHV0uYVbuPQGLOzTkgVEOhKPH1fGQglU7X8xDUgnsLWRQvFBQDboDV/5VPOAEIO9DNnD3OD2Uo9lbQeEDSZZaA==", + "version": "1.55.0-alpha-2025-07-28", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.55.0-alpha-2025-07-28.tgz", + "integrity": "sha512-CsrKhe7BWLdW8b/aXPd7Ppp/Kxt1fBxNmhXK5nh+MmDbOIXfqP+FW9UescP7rJ6TjPFGmoCgSnweEYzsBUVZUA==", "requires": { - "playwright": "1.55.0-alpha-2025-07-21" + "playwright": "1.55.0-alpha-2025-07-28" } }, "fsevents": { @@ -84,18 +84,18 @@ "optional": true }, "playwright": { - "version": "1.55.0-alpha-2025-07-21", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.55.0-alpha-2025-07-21.tgz", - "integrity": "sha512-v2fg2XJiD4/Zt+ZFFHttWcHOyAFmbo4ZrFI+pvOT58m+b3hctwTdpkavBIWE0UXTgOXI75JekE00RdI+dbQ/3A==", + "version": "1.55.0-alpha-2025-07-28", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.55.0-alpha-2025-07-28.tgz", + "integrity": "sha512-Gw4T/f6h2XxTfNtmxEt+ruITF1MNERYJ/Jl1LcndbhhEYg9qQJGHgXiuiSgtf+pI9iuTgS7riijEdAcykV8D0g==", "requires": { "fsevents": "2.3.2", - "playwright-core": "1.55.0-alpha-2025-07-21" + "playwright-core": "1.55.0-alpha-2025-07-28" } }, "playwright-core": { - "version": "1.55.0-alpha-2025-07-21", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.0-alpha-2025-07-21.tgz", - "integrity": "sha512-ETmLToOLpwn7ZsjwZH4hscRZ/4Gu5me+yMCv4o7ictTzmU56FtvteS6cund7Fc+FCCzspRUK5oLwmz+sPZugoA==" + "version": "1.55.0-alpha-2025-07-28", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.0-alpha-2025-07-28.tgz", + "integrity": "sha512-9gbt7wzEf/3b7AJrSiBiEDGh8QEK3u2ZInaxR1VsLPJLZXnClglw70bwi2UAfGlI85pyggIga4Rz5s682xeBTg==" } } } diff --git a/tests/playwright-test/stable-test-runner/package.json b/tests/playwright-test/stable-test-runner/package.json index 5fe383d4ba869..59739cf6c357b 100644 --- a/tests/playwright-test/stable-test-runner/package.json +++ b/tests/playwright-test/stable-test-runner/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "@playwright/test": "^1.55.0-alpha-2025-07-21" + "@playwright/test": "^1.55.0-alpha-2025-07-28" } }