Skip to content

Commit 241bc35

Browse files
feat: addition of cookies and basic auth - 11
1 parent 60d4f5c commit 241bc35

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/processSnapshot.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { scrollToBottomAndBackToTop, getRenderViewports } from "./utils.js"
33
import { chromium, Locator } from "@playwright/test"
44
import constants from "./constants.js";
55
import { updateLogContext } from '../lib/logger.js'
6-
import axios from "axios";
76

87
const MAX_RESOURCE_SIZE = 15 * (1024 ** 2); // 15MB
98
var ALLOWED_RESOURCES = ['document', 'stylesheet', 'image', 'media', 'font', 'other'];
@@ -81,8 +80,7 @@ async function processSnapshot(snapshot: Snapshot, ctx: Context): Promise<Record
8180
updateLogContext({task: 'discovery'});
8281
ctx.log.debug(`Processing snapshot ${snapshot.name}`);
8382

84-
let launchOptions: Record<string, any> = { headless: false,
85-
proxy: { server: 'http://3.214.241.254:28687'} }
83+
let launchOptions: Record<string, any> = { headless: true }
8684
let contextOptions: Record<string, any> = {
8785
javaScriptEnabled: ctx.config.cliEnableJavaScript,
8886
userAgent: constants.CHROME_USER_AGENT,

0 commit comments

Comments
 (0)