Skip to content

Commit 1ca9fb3

Browse files
committed
Configure chrome to use proxy for tests
1 parent ff9769d commit 1ca9fb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/e2e/e2e_chromium_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ func runChromiumUserDataSavingFlow(t *testing.T, image, containerName string) {
131131
}
132132
if strings.Contains(image, "headful") {
133133
// headless image sets its own flags, so only do this for headful
134-
env["CHROMIUM_FLAGS"] = "--no-sandbox --disable-dev-shm-usage --disable-gpu --start-maximized --disable-software-rasterizer --remote-allow-origins=* --no-zygote --password-store=basic --no-first-run"
134+
env["CHROMIUM_FLAGS"] = "--no-sandbox --disable-dev-shm-usage --disable-gpu --start-maximized --disable-software-rasterizer --remote-allow-origins=* --no-zygote --password-store=basic --no-first-run --proxy-server=http://127.0.0.1:3128"
135+
} else {
136+
// headless image respects CHROMIUM_FLAGS env var
137+
env["CHROMIUM_FLAGS"] = "--proxy-server=http://127.0.0.1:3128"
135138
}
136139
logger.Info("[setup]", "action", "starting container", "image", image, "name", containerName)
137140
_, exitCh, err := runContainer(baseCtx, image, containerName, env)

0 commit comments

Comments
 (0)