Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(install): follow-up to 5b1aef4c20a7a714bd4db6924da33c666367c7e2

Andrey Lushnikov92bd854d8fb7
diff --git a/install.js b/install.js
index c223cd77c6..d35baf03a7 100644
--- a/install.js
+++ b/install.js
@@ -82,7 +82,7 @@ async function downloadBrowser(browser, playwright) {
logPolitely(`${browser} downloaded to ${revisionInfo.folderPath}`);
const localRevisions = await fetcher.localRevisions();
// Remove previous revisions.
- const cleanupOldVersions = localRevisions.filter(revision => revision !== revisionInfo.revision).map(revision => browserFetcher.remove(revision));
+ const cleanupOldVersions = localRevisions.filter(revision => revision !== revisionInfo.revision).map(revision => fetcher.remove(revision));
await Promise.all([...cleanupOldVersions]);
return revisionInfo;
}