Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: update rimraf package to version 4 to eliminate "promisify" (#24190)
Marcin Strzyzd5e7b4f16fd4
diff --git a/package-lock.json b/package-lock.jsonindex 152c0a59c2..cbe2db9208 100644--- a/package-lock.json+++ b/package-lock.json@@ -56,7 +56,7 @@"proxy": "^1.0.2","react": "^18.1.0","react-dom": "^18.1.0",- "rimraf": "^3.0.2",+ "rimraf": "^4.4.1","socksv5": "0.0.6","ssim.js": "^3.5.0","typescript": "^5.1.3",@@ -3695,6 +3695,21 @@"node": "^10.12.0 || >=12.0.0"}},+ "node_modules/flat-cache/node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/flatted": {"version": "3.1.1","dev": true,@@ -4508,6 +4523,15 @@"dev": true,"license": "MIT"},+ "node_modules/minipass": {+ "version": "4.2.8",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz",+ "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },"node_modules/mkdirp": {"version": "0.5.5","dev": true,@@ -4806,6 +4830,40 @@"dev": true,"license": "MIT"},+ "node_modules/path-scurry": {+ "version": "1.10.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz",+ "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==",+ "dev": true,+ "dependencies": {+ "lru-cache": "^9.1.1 || ^10.0.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/path-scurry/node_modules/lru-cache": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.0.tgz",+ "integrity": "sha512-svTf/fzsKHffP42sujkO/Rjs37BCIsQVRCeNYIm9WN8rgT7ffoUnRtZCqU+6BqcSBdv8gwJeTz8knJpgACeQMw==",+ "dev": true,+ "engines": {+ "node": "14 || >=16.14"+ }+ },+ "node_modules/path-scurry/node_modules/minipass": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.2.tgz",+ "integrity": "sha512-eL79dXrE1q9dBbDCLg7xfn/vl7MS4F1gvJAgjJrQli/jbQWdUttuVawphqpffoIYfRdq78LHx6GP4bU/EQ2ATA==",+ "dev": true,+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },"node_modules/path-type": {"version": "4.0.0","dev": true,@@ -5155,14 +5213,60 @@}},"node_modules/rimraf": {- "version": "3.0.2",+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz",+ "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==","dev": true,- "license": "ISC","dependencies": {- "glob": "^7.1.3"+ "glob": "^9.2.0"},"bin": {- "rimraf": "bin.js"+ "rimraf": "dist/cjs/src/bin.js"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rimraf/node_modules/brace-expansion": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "dev": true,+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/rimraf/node_modules/glob": {+ "version": "9.3.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz",+ "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==",+ "dev": true,+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "minimatch": "^8.0.2",+ "minipass": "^4.2.4",+ "path-scurry": "^1.6.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rimraf/node_modules/minimatch": {+ "version": "8.0.4",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz",+ "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==",+ "dev": true,+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"},"funding": {"url": "https://github.com/sponsors/isaacs"@@ -8862,6 +8966,17 @@"requires": {"flatted": "^3.1.0","rimraf": "^3.0.2"+ },+ "dependencies": {+ "rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "requires": {+ "glob": "^7.1.3"+ }+ }}},"flatted": {@@ -9414,6 +9529,12 @@"version": "1.2.6","dev": true},+ "minipass": {+ "version": "4.2.8",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz",+ "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==",+ "dev": true+ },"mkdirp": {"version": "0.5.5","dev": true,@@ -9605,6 +9726,30 @@"version": "1.0.7","dev": true},+ "path-scurry": {+ "version": "1.10.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz",+ "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==",+ "dev": true,+ "requires": {+ "lru-cache": "^9.1.1 || ^10.0.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "dependencies": {+ "lru-cache": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.0.tgz",+ "integrity": "sha512-svTf/fzsKHffP42sujkO/Rjs37BCIsQVRCeNYIm9WN8rgT7ffoUnRtZCqU+6BqcSBdv8gwJeTz8knJpgACeQMw==",+ "dev": true+ },+ "minipass": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.2.tgz",+ "integrity": "sha512-eL79dXrE1q9dBbDCLg7xfn/vl7MS4F1gvJAgjJrQli/jbQWdUttuVawphqpffoIYfRdq78LHx6GP4bU/EQ2ATA==",+ "dev": true+ }+ }+ },"path-type": {"version": "4.0.0","dev": true@@ -9837,10 +9982,44 @@"dev": true},"rimraf": {- "version": "3.0.2",+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz",+ "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==","dev": true,"requires": {- "glob": "^7.1.3"+ "glob": "^9.2.0"+ },+ "dependencies": {+ "brace-expansion": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "dev": true,+ "requires": {+ "balanced-match": "^1.0.0"+ }+ },+ "glob": {+ "version": "9.3.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz",+ "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==",+ "dev": true,+ "requires": {+ "fs.realpath": "^1.0.0",+ "minimatch": "^8.0.2",+ "minipass": "^4.2.4",+ "path-scurry": "^1.6.1"+ }+ },+ "minimatch": {+ "version": "8.0.4",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz",+ "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==",+ "dev": true,+ "requires": {+ "brace-expansion": "^2.0.1"+ }+ }}},"roarr": {diff --git a/package.json b/package.jsonindex ebf9cb6cf2..fc7df721d4 100644--- a/package.json+++ b/package.json@@ -91,7 +91,7 @@"proxy": "^1.0.2","react": "^18.1.0","react-dom": "^18.1.0",- "rimraf": "^3.0.2",+ "rimraf": "^4.4.1","socksv5": "0.0.6","ssim.js": "^3.5.0","typescript": "^5.1.3",diff --git a/packages/playwright-core/ThirdPartyNotices.txt b/packages/playwright-core/ThirdPartyNotices.txtindex a4d0c4a588..5f0ba185d7 100644--- a/packages/playwright-core/ThirdPartyNotices.txt+++ b/packages/playwright-core/ThirdPartyNotices.txt@@ -9,6 +9,7 @@ This project incorporates components from the projects listed below. The origina- [email protected] (https://github.com/TooTallNate/node-agent-base)- [email protected] (https://github.com/juliangruber/balanced-match)- [email protected] (https://github.com/juliangruber/brace-expansion)+- [email protected] (https://github.com/juliangruber/brace-expansion)- [email protected] (https://github.com/brianloveswords/buffer-crc32)- [email protected] (https://github.com/codemirror/CodeMirror)- [email protected] (https://github.com/Marak/colors.js)@@ -23,6 +24,7 @@ This project incorporates components from the projects listed below. The origina- [email protected] (https://github.com/isaacs/fs.realpath)- [email protected] (https://github.com/sindresorhus/get-stream)- [email protected] (https://github.com/isaacs/node-glob)+- [email protected] (https://github.com/isaacs/node-glob)- [email protected] (https://github.com/isaacs/node-graceful-fs)- [email protected] (https://github.com/TooTallNate/node-https-proxy-agent)- [email protected] (https://github.com/npm/inflight)@@ -31,19 +33,24 @@ This project incorporates components from the projects listed below. The origina- [email protected] (https://github.com/sindresorhus/is-docker)- [email protected] (https://github.com/sindresorhus/is-wsl)- [email protected] (https://github.com/eugeneware/jpeg-js)+- [email protected] (https://github.com/isaacs/node-lru-cache)- [email protected] (https://github.com/broofa/mime)- [email protected] (https://github.com/isaacs/minimatch)+- [email protected] (https://github.com/isaacs/minimatch)+- [email protected] (https://github.com/isaacs/minipass)+- [email protected] (https://github.com/isaacs/minipass)- [email protected] (https://github.com/zeit/ms)- [email protected] (https://github.com/isaacs/once)- [email protected] (https://github.com/sindresorhus/open)- [email protected] (https://github.com/sindresorhus/path-is-absolute)+- [email protected] (https://github.com/isaacs/path-scurry)- [email protected] (https://github.com/andrewrk/node-pend)- [email protected] (https://github.com/lukeapage/pngjs)- [email protected] (https://github.com/visionmedia/node-progress)- [email protected] (https://github.com/Rob--W/proxy-from-env)- [email protected] (https://github.com/mafintosh/pump)- [email protected] (https://github.com/tim-kos/node-retry)-- [email protected] (https://github.com/isaacs/rimraf)+- [email protected] (https://github.com/isaacs/rimraf)- [email protected] (https://github.com/tapjs/signal-exit)- [email protected] (https://github.com/JoshGlazebrook/smart-buffer)- [email protected] (https://github.com/TooTallNate/node-socks-proxy-agent)@@ -308,6 +315,32 @@ SOFTWARE.=========================================END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+MIT License++Copyright (c) 2013 Julian Gruber <[email protected]>++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================The MIT License@@ -658,6 +691,26 @@ https://creativecommons.org/licenses/by-sa/4.0/=========================================END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+The ISC License++Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors++Permission to use, copy, modify, and/or distribute this software for any+purpose with or without fee is hereby granted, provided that the above+copyright notice and this permission notice appear in all copies.++THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================The ISC License@@ -1013,6 +1066,26 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.=========================================END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+The ISC License++Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors++Permission to use, copy, modify, and/or distribute this software for any+purpose with or without fee is hereby granted, provided that the above+copyright notice and this permission notice appear in all copies.++THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================The MIT License (MIT)@@ -1059,6 +1132,66 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.=========================================END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+The ISC License++Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors++Permission to use, copy, modify, and/or distribute this software for any+purpose with or without fee is hereby granted, provided that the above+copyright notice and this permission notice appear in all copies.++THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION++%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+The ISC License++Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors++Permission to use, copy, modify, and/or distribute this software for any+purpose with or without fee is hereby granted, provided that the above+copyright notice and this permission notice appear in all copies.++THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION++%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+The ISC License++Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors++Permission to use, copy, modify, and/or distribute this software for any+purpose with or without fee is hereby granted, provided that the above+copyright notice and this permission notice appear in all copies.++THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================The MIT License (MIT)@@ -1145,6 +1278,66 @@ THE SOFTWARE.=========================================END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+# Blue Oak Model License++Version 1.0.0++## Purpose++This license gives everyone as much permission to work with+this software as possible, while protecting contributors+from liability.++## Acceptance++In order to receive this license, you must agree to its+rules. The rules of this license are both obligations+under that agreement and conditions to your license.+You must not do anything with this software that triggers+a rule that you cannot or will not follow.++## Copyright++Each contributor licenses you to do everything with this+software that would otherwise infringe that contributor's+copyright in it.++## Notices++You must ensure that everyone who gets a copy of+any part of this software from you, with or without+changes, also gets the text of this license or a link to+<https://blueoakcouncil.org/license/1.0.0>.++## Excuse++If anyone notifies you in writing that you have not+complied with [Notices](#notices), you can keep your+license by taking all practical steps to comply within 30+days after the notice. If you do not do so, your license+ends immediately.++## Patent++Each contributor licenses you to do everything with this+software that would otherwise infringe any patent claims+they can license or become able to license.++## Reliability++No contributor can revoke this license.++## No Liability++***As far as the law allows, this software comes as is,+without any warranty or condition, and no contributor+will be liable to anyone for any damages related to this+software or this license, under any kind of legal claim.***+=========================================+END OF [email protected] AND INFORMATION+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================The MIT License (Expat)@@ -1302,11 +1495,11 @@ Felix Geisendörfer ([email protected])=========================================END OF [email protected] AND INFORMATION-%% [email protected] NOTICES AND INFORMATION BEGIN HERE+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================The ISC License-Copyright (c) Isaac Z. Schlueter and Contributors+Copyright (c) 2011-2023 Isaac Z. Schlueter and ContributorsPermission to use, copy, modify, and/or distribute this software for anypurpose with or without fee is hereby granted, provided that the above@@ -1320,7 +1513,7 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ANACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ORIN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.=========================================-END OF [email protected] AND INFORMATION+END OF [email protected] AND INFORMATION%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================@@ -1674,6 +1867,6 @@ END OF [email protected] AND INFORMATIONSUMMARY BEGIN HERE=========================================-Total Packages: 49+Total Packages: 56=========================================END OF SUMMARY\ No newline at end of filediff --git a/packages/playwright-core/bundles/utils/package-lock.json b/packages/playwright-core/bundles/utils/package-lock.jsonindex c4ddbc0a29..962ad7f0cf 100644--- a/packages/playwright-core/bundles/utils/package-lock.json+++ b/packages/playwright-core/bundles/utils/package-lock.json@@ -22,7 +22,7 @@"progress": "2.0.3","proxy-from-env": "1.1.0","retry": "0.12.0",- "rimraf": "^3.0.2",+ "rimraf": "^4.4.1","signal-exit": "3.0.7","socks-proxy-agent": "6.1.1","stack-utils": "2.0.5",@@ -37,7 +37,6 @@"@types/progress": "^2.0.5","@types/proper-lockfile": "^4.1.2","@types/proxy-from-env": "^1.0.1",- "@types/rimraf": "^3.0.2","@types/stack-utils": "^2.0.1","@types/ws": "8.2.2"}@@ -127,16 +126,6 @@"integrity": "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==","dev": true},- "node_modules/@types/rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/@types/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==",- "dev": true,- "dependencies": {- "@types/glob": "*",- "@types/node": "*"- }- },"node_modules/@types/stack-utils": {"version": "2.0.1","resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz",@@ -320,6 +309,14 @@"resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz","integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="},+ "node_modules/lru-cache": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.0.tgz",+ "integrity": "sha512-svTf/fzsKHffP42sujkO/Rjs37BCIsQVRCeNYIm9WN8rgT7ffoUnRtZCqU+6BqcSBdv8gwJeTz8knJpgACeQMw==",+ "engines": {+ "node": "14 || >=16.14"+ }+ },"node_modules/mime": {"version": "3.0.0","resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",@@ -342,6 +339,14 @@"node": "*"}},+ "node_modules/minipass": {+ "version": "4.2.8",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz",+ "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",@@ -379,6 +384,29 @@"node": ">=0.10.0"}},+ "node_modules/path-scurry": {+ "version": "1.10.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz",+ "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==",+ "dependencies": {+ "lru-cache": "^9.1.1 || ^10.0.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/path-scurry/node_modules/minipass": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.2.tgz",+ "integrity": "sha512-eL79dXrE1q9dBbDCLg7xfn/vl7MS4F1gvJAgjJrQli/jbQWdUttuVawphqpffoIYfRdq78LHx6GP4bU/EQ2ATA==",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },"node_modules/pngjs": {"version": "6.0.0","resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz",@@ -409,14 +437,56 @@}},"node_modules/rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz",+ "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==","dependencies": {- "glob": "^7.1.3"+ "glob": "^9.2.0"},"bin": {- "rimraf": "bin.js"+ "rimraf": "dist/cjs/src/bin.js"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rimraf/node_modules/brace-expansion": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/rimraf/node_modules/glob": {+ "version": "9.3.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz",+ "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "minimatch": "^8.0.2",+ "minipass": "^4.2.4",+ "path-scurry": "^1.6.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rimraf/node_modules/minimatch": {+ "version": "8.0.4",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz",+ "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"},"funding": {"url": "https://github.com/sponsors/isaacs"@@ -585,16 +655,6 @@"integrity": "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==","dev": true},- "@types/rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/@types/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==",- "dev": true,- "requires": {- "@types/glob": "*",- "@types/node": "*"- }- },"@types/stack-utils": {"version": "2.0.1","resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz",@@ -734,6 +794,11 @@"resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz","integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="},+ "lru-cache": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.0.tgz",+ "integrity": "sha512-svTf/fzsKHffP42sujkO/Rjs37BCIsQVRCeNYIm9WN8rgT7ffoUnRtZCqU+6BqcSBdv8gwJeTz8knJpgACeQMw=="+ },"mime": {"version": "3.0.0","resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",@@ -747,6 +812,11 @@"brace-expansion": "^1.1.7"}},+ "minipass": {+ "version": "4.2.8",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz",+ "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ=="+ },"ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",@@ -775,6 +845,22 @@"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz","integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="},+ "path-scurry": {+ "version": "1.10.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz",+ "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==",+ "requires": {+ "lru-cache": "^9.1.1 || ^10.0.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "dependencies": {+ "minipass": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.2.tgz",+ "integrity": "sha512-eL79dXrE1q9dBbDCLg7xfn/vl7MS4F1gvJAgjJrQli/jbQWdUttuVawphqpffoIYfRdq78LHx6GP4bU/EQ2ATA=="+ }+ }+ },"pngjs": {"version": "6.0.0","resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz",@@ -796,11 +882,40 @@"integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow=="},"rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz",+ "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==","requires": {- "glob": "^7.1.3"+ "glob": "^9.2.0"+ },+ "dependencies": {+ "brace-expansion": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "requires": {+ "balanced-match": "^1.0.0"+ }+ },+ "glob": {+ "version": "9.3.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz",+ "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==",+ "requires": {+ "fs.realpath": "^1.0.0",+ "minimatch": "^8.0.2",+ "minipass": "^4.2.4",+ "path-scurry": "^1.6.1"+ }+ },+ "minimatch": {+ "version": "8.0.4",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz",+ "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==",+ "requires": {+ "brace-expansion": "^2.0.1"+ }+ }}},"signal-exit": {diff --git a/packages/playwright-core/bundles/utils/package.json b/packages/playwright-core/bundles/utils/package.jsonindex d8216841ea..cb708c1c4b 100644--- a/packages/playwright-core/bundles/utils/package.json+++ b/packages/playwright-core/bundles/utils/package.json@@ -23,7 +23,7 @@"progress": "2.0.3","proxy-from-env": "1.1.0","retry": "0.12.0",- "rimraf": "^3.0.2",+ "rimraf": "^4.4.1","signal-exit": "3.0.7","socks-proxy-agent": "6.1.1","stack-utils": "2.0.5",@@ -38,7 +38,6 @@"@types/progress": "^2.0.5","@types/proper-lockfile": "^4.1.2","@types/proxy-from-env": "^1.0.1",- "@types/rimraf": "^3.0.2","@types/stack-utils": "^2.0.1","@types/ws": "8.2.2"}diff --git a/packages/playwright-core/src/utils/fileUtils.ts b/packages/playwright-core/src/utils/fileUtils.tsindex 7725f77ea3..473e5d333e 100644--- a/packages/playwright-core/src/utils/fileUtils.ts+++ b/packages/playwright-core/src/utils/fileUtils.ts@@ -28,9 +28,7 @@ export async function mkdirIfNeeded(filePath: string) {export async function removeFolders(dirs: string[]): Promise<Array<Error|null|undefined>> {return await Promise.all(dirs.map((dir: string) => {return new Promise<Error|null|undefined>(fulfill => {- rimraf(dir, { maxBusyTries: 10 }, error => {- fulfill(error ?? undefined);- });+ rimraf(dir, { maxRetries: 10 }).then(() => fulfill(undefined)).catch((e: Error) => fulfill(e));});}));}diff --git a/packages/playwright-core/src/utilsBundle.ts b/packages/playwright-core/src/utilsBundle.tsindex 5ecccbcbfd..14c620a083 100644--- a/packages/playwright-core/src/utilsBundle.ts+++ b/packages/playwright-core/src/utilsBundle.ts@@ -29,7 +29,7 @@ export const open: typeof import('../bundles/utils/node_modules/open') = requireexport const PNG: typeof import('../bundles/utils/node_modules/@types/pngjs').PNG = require('./utilsBundleImpl').PNG;export const program: typeof import('../bundles/utils/node_modules/commander').program = require('./utilsBundleImpl').program;export const progress: typeof import('../bundles/utils/node_modules/@types/progress') = require('./utilsBundleImpl').progress;-export const rimraf: typeof import('../bundles/utils/node_modules/@types/rimraf') = require('./utilsBundleImpl').rimraf;+export const rimraf: typeof import('../bundles/utils/node_modules/rimraf').rimraf = require('./utilsBundleImpl').rimraf;export const SocksProxyAgent: typeof import('../bundles/utils/node_modules/socks-proxy-agent').SocksProxyAgent = require('./utilsBundleImpl').SocksProxyAgent;export const ws: typeof import('../bundles/utils/node_modules/@types/ws') = require('./utilsBundleImpl').ws;export const wsServer: typeof import('../bundles/utils/node_modules/@types/ws').WebSocketServer = require('./utilsBundleImpl').wsServer;diff --git a/packages/playwright-test/src/runner/tasks.ts b/packages/playwright-test/src/runner/tasks.tsindex 40c27b0182..26a8b2adb6 100644--- a/packages/playwright-test/src/runner/tasks.ts+++ b/packages/playwright-test/src/runner/tasks.ts@@ -31,7 +31,6 @@ import type { Suite } from '../common/test';import { buildDependentProjects, buildTeardownToSetupsMap } from './projectUtils';import { monotonicTime } from 'playwright-core/lib/utils';-const removeFolderAsync = promisify(rimraf);const readDirAsync = promisify(fs.readdir);type ProjectWithTestGroups = {@@ -157,13 +156,13 @@ function createRemoveOutputDirsTask(): Task<TestRun> {outputDirs.add(p.project.outputDir);}- await Promise.all(Array.from(outputDirs).map(outputDir => removeFolderAsync(outputDir).catch(async (error: any) => {+ await Promise.all(Array.from(outputDirs).map(outputDir => rimraf(outputDir).catch(async (error: any) => {if ((error as any).code === 'EBUSY') {// We failed to remove folder, might be due to the whole folder being mounted inside a container:// https://github.com/microsoft/playwright/issues/12106// Do a best-effort to remove all files inside of it instead.const entries = await readDirAsync(outputDir).catch(e => []);- await Promise.all(entries.map(entry => removeFolderAsync(path.join(outputDir, entry))));+ await Promise.all(entries.map(entry => rimraf(path.join(outputDir, entry))));} else {throw error;}diff --git a/packages/playwright-test/src/worker/workerMain.ts b/packages/playwright-test/src/worker/workerMain.tsindex 73be203462..2af4de0496 100644--- a/packages/playwright-test/src/worker/workerMain.ts+++ b/packages/playwright-test/src/worker/workerMain.ts@@ -32,8 +32,6 @@ import { applyRepeatEachIndex, bindFileSuiteToProject, filterTestsRemoveEmptySuiimport { PoolBuilder } from '../common/poolBuilder';import type { TestInfoError } from '../../types/test';-const removeFolderAsync = util.promisify(rimraf);-export class WorkerMain extends ProcessRunner {private _params: WorkerInitParams;private _config!: FullConfigInternal;@@ -323,7 +321,7 @@ export class WorkerMain extends ProcessRunner {return;}- await removeFolderAsync(testInfo.outputDir).catch(() => {});+ await rimraf(testInfo.outputDir).catch(() => {});let testFunctionParams: object | null = null;await testInfo._runAsStep({ category: 'hook', title: 'Before Hooks' }, async step => {@@ -490,7 +488,7 @@ export class WorkerMain extends ProcessRunner {const preserveOutput = this._config.config.preserveOutput === 'always' ||(this._config.config.preserveOutput === 'failures-only' && testInfo._isFailure());if (!preserveOutput)- await removeFolderAsync(testInfo.outputDir).catch(() => {});+ await rimraf(testInfo.outputDir).catch(() => {});}private async _runModifiersForSuite(suite: Suite, testInfo: TestInfoImpl, scope: 'worker' | 'test', timeSlot: TimeSlot | undefined, extraAnnotations?: Annotation[]) {diff --git a/tests/installation/globalSetup.ts b/tests/installation/globalSetup.tsindex 5a23192de2..8224b29e70 100644--- a/tests/installation/globalSetup.ts+++ b/tests/installation/globalSetup.ts@@ -16,14 +16,13 @@import path from 'path';import { spawnAsync } from '../../packages/playwright-core/lib/utils/spawnAsync';import { rimraf } from 'playwright-core/lib/utilsBundle';-import { promisify } from 'util';import fs from 'fs';import { TMP_WORKSPACES } from './npmTest';const PACKAGE_BUILDER_SCRIPT = path.join(__dirname, '..', '..', 'utils', 'pack_package.js');async function globalSetup() {- await promisify(rimraf)(TMP_WORKSPACES);+ await rimraf(TMP_WORKSPACES);console.log(`Temporary workspaces will be created in ${TMP_WORKSPACES}. They will not be removed at the end. Set DEBUG=itest to determine which sub-dir a specific test is using.`);await fs.promises.mkdir(TMP_WORKSPACES, { recursive: true });@@ -32,7 +31,7 @@ async function globalSetup() {} else {console.log('Building packages. Set PWTEST_INSTALLATION_TEST_SKIP_PACKAGE_BUILDS to skip.');const outputDir = path.join(__dirname, 'output');- await promisify(rimraf)(outputDir);+ await rimraf(outputDir);await fs.promises.mkdir(outputDir, { recursive: true });const build = async (buildTarget: string, pkgNameOverride?: string) => {diff --git a/tests/playwright-test/playwright-test-fixtures.ts b/tests/playwright-test/playwright-test-fixtures.tsindex 5d887f02e1..cea41f88fb 100644--- a/tests/playwright-test/playwright-test-fixtures.ts+++ b/tests/playwright-test/playwright-test-fixtures.ts@@ -19,7 +19,6 @@ import * as fs from 'fs';import * as os from 'os';import * as path from 'path';import { rimraf, PNG } from 'playwright-core/lib/utilsBundle';-import { promisify } from 'util';import type { CommonFixtures, CommonWorkerFixtures, TestChildProcess } from '../config/commonFixtures';import { commonFixtures } from '../config/commonFixtures';import type { ServerFixtures, ServerWorkerOptions } from '../config/serverFixtures';@@ -28,8 +27,6 @@ import type { TestInfo } from './stable-test-runner';import { expect } from './stable-test-runner';import { test as base } from './stable-test-runner';-export const removeFolderAsync = promisify(rimraf);-export type CliRunResult = {exitCode: number,output: string,@@ -301,7 +298,7 @@ export const test = baseconst baseDir = await writeFiles(testInfo, files, true);return await runPlaywrightTest(childProcess, baseDir, params, { ...env, PWTEST_CACHE_DIR: cacheDir }, options, files, mergeReports, useIntermediateMergeReport);});- await removeFolderAsync(cacheDir);+ await rimraf(cacheDir);},runListFiles: async ({ childProcess }, use, testInfo: TestInfo) => {@@ -310,7 +307,7 @@ export const test = baseconst baseDir = await writeFiles(testInfo, files, true);return await runPlaywrightListFiles(childProcess, baseDir, { PWTEST_CACHE_DIR: cacheDir });});- await removeFolderAsync(cacheDir);+ await rimraf(cacheDir);},runWatchTest: async ({ childProcess }, use, testInfo: TestInfo) => {@@ -322,7 +319,7 @@ export const test = basereturn testProcess;});await testProcess?.kill();- await removeFolderAsync(cacheDir);+ await rimraf(cacheDir);},runTSC: async ({ childProcess }, use, testInfo) => {diff --git a/tests/playwright-test/ui-mode-fixtures.ts b/tests/playwright-test/ui-mode-fixtures.tsindex 7b9fdf55a0..78e1d17cdb 100644--- a/tests/playwright-test/ui-mode-fixtures.ts+++ b/tests/playwright-test/ui-mode-fixtures.ts@@ -18,7 +18,8 @@ import * as fs from 'fs';import * as os from 'os';import * as path from 'path';import type { TestChildProcess } from '../config/commonFixtures';-import { cleanEnv, cliEntrypoint, removeFolderAsync, test as base, writeFiles } from './playwright-test-fixtures';+import { rimraf } from '../../packages/playwright-core/lib/utilsBundle';+import { cleanEnv, cliEntrypoint, test as base, writeFiles } from './playwright-test-fixtures';import type { Files, RunOptions } from './playwright-test-fixtures';import type { Browser, Page, TestInfo } from './stable-test-runner';import { createGuid } from '../../packages/playwright-core/src/utils/crypto';@@ -110,7 +111,7 @@ export const test = base});await browser?.close();await testProcess?.kill('SIGINT');- await removeFolderAsync(cacheDir);+ await rimraf(cacheDir);},createLatch: async ({}, use, testInfo) => {await use(() => {