Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix import errors for playwright test

Francis Caod803eb72102c
diff --git a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts
index f76f6ac81..42b3eef4f 100644
--- a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts
+++ b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts
@@ -578,14 +578,13 @@ function getSnapshotErrorMessage(error: unknown) {
}
async function createSnapshotBrowser() {
+ const { chromium } = await import('playwright-core');
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',
headless: true,