Skip to content

Commit 3e8e82f

Browse files
authored
Merge pull request #102 from pinanks/DOT-3374
Dot 3374
2 parents 427eecf + 67166cb commit 3e8e82f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/processSnapshot.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Snapshot, Context, ProcessedSnapshot } from "../types.js";
22
import { scrollToBottomAndBackToTop, getRenderViewports } from "./utils.js"
3-
import { chromium, Locator } from "@playwright/test"
3+
import { firefox, Locator } from "@playwright/test"
44
import constants from "./constants.js";
55

66
const MAX_RESOURCE_SIZE = 15 * (1024 ** 2); // 15MB
@@ -85,8 +85,8 @@ async function processSnapshot(snapshot: Snapshot, ctx: Context): Promise<Record
8585
}
8686
if (!ctx.browser?.isConnected()) {
8787
if (ctx.env.HTTP_PROXY || ctx.env.HTTPS_PROXY) launchOptions.proxy = { server: ctx.env.HTTP_PROXY || ctx.env.HTTPS_PROXY };
88-
ctx.browser = await chromium.launch(launchOptions);
89-
ctx.log.debug(`Chromium launched with options ${JSON.stringify(launchOptions)}`);
88+
ctx.browser = await firefox.launch(launchOptions);
89+
ctx.log.debug(`Firefox launched with options ${JSON.stringify(launchOptions)}`);
9090
}
9191
const context = await ctx.browser.newContext(contextOptions);
9292
ctx.log.debug(`Browser context created with options ${JSON.stringify(contextOptions)}`);

0 commit comments

Comments
 (0)