revert playwright core changes
This commit is contained in:
1 parent
84e14981c2
commit
cf7b722fe6
4 files changed
+1
-12
No files matched your search
@@ -578,13 +578,7 @@ function getSnapshotErrorMessage(error: unknown) {
|
||||
}
|
||||
|
||||
async function createSnapshotBrowser() {
|
||||
const { chromium } = await import('playwright-core');
|
||||
const endpoint = process.env.PLAYWRIGHT_URL?.trim();
|
||||
|
||||
if (endpoint) {
|
||||
return chromium.connect(endpoint);
|
||||
}
|
||||
|
||||
const { chromium } = await import('@playwright/test');
|
||||
return chromium.launch({
|
||||
channel: 'chromium',
|
||||
headless: true,
|
||||
|
||||
Reference in new issue
Block a user