add back PLAYWRIGHT_URL implementation

This commit is contained in:
Francis Cao committed 2026-05-27 16:24:01 -07:00
1 parent cf7b722fe6
commit 1a6f494754
3 files changed
+11

No files matched your search

@@ -578,6 +578,13 @@ function getSnapshotErrorMessage(error: unknown) {
}
async function createSnapshotBrowser() {
const endpoint = process.env.PLAYWRIGHT_URL?.trim();
if (endpoint) {
const { chromium } = await import('playwright-core');
return chromium.connect(endpoint);
}
const { chromium } = await import('@playwright/test');
return chromium.launch({
channel: 'chromium',