Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppeteer_test: Change browser default viewport to allow Firefox.

Riken Shah6676aa2f90c8
diff --git a/frontend_tests/puppeteer_lib/common.ts b/frontend_tests/puppeteer_lib/common.ts
index 6c448b05f55..2570a579702 100644
--- a/frontend_tests/puppeteer_lib/common.ts
+++ b/frontend_tests/puppeteer_lib/common.ts
@@ -65,7 +65,10 @@ class CommonUtils {
"--no-sandbox",
"--disable-setuid-sandbox",
],
- defaultViewport: {width: 1280, height: 1024},
+ // TODO: Change defaultViewport to 1280x1024 when puppeteer fixes the window size issue with firefox.
+ // Here is link to the issue that is tracking the above problem https://github.com/puppeteer/puppeteer/issues/6442.
+ // @ts-expect-error: Because of https://github.com/puppeteer/puppeteer/issues/6885
+ defaultViewport: null,
headless: true,
});
}