Fix playright browser installs due to upstream breaking change (#55740)

This commit is contained in:
Jake Bailey
2023-09-14 08:44:55 -07:00
committed by GitHub
parent a563de9e49
commit 47e4448d57
5 changed files with 76 additions and 13 deletions

View File

@@ -5,15 +5,7 @@ import {
import {
join,
} from "path";
let playwright;
try {
// @ts-ignore-error
playwright = await import("playwright");
}
catch (error) {
throw new Error("Playwright is expected to be installed manually before running this script");
}
import playwright from "playwright";
// Turning this on will leave the Chromium browser open, giving you the
// chance to open up the web inspector.