Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Extract window size into a object.
Priyank Patel3ab603e3a200
diff --git a/frontend_tests/puppeteer_lib/common.js b/frontend_tests/puppeteer_lib/common.jsindex 8193c225196..bad203dcdd2 100644--- a/frontend_tests/puppeteer_lib/common.js+++ b/frontend_tests/puppeteer_lib/common.js@@ -41,17 +41,28 @@ class CommonUtils {assert.equal(actual_recipients, expected);},};+this.fullname = {cordelia: "Cordelia Lear",othello: "Othello, the Moor of Venice",hamlet: "King Hamlet",};++ this.window_size = {+ width: 1400,+ height: 1024,+ };}async ensure_browser() {if (this.browser === null) {+ const {window_size} = this;this.browser = await puppeteer.launch({- args: ["--window-size=1400,1024", "--no-sandbox", "--disable-setuid-sandbox"],+ args: [+ `--window-size=${window_size.width},${window_size.height}`,+ "--no-sandbox",+ "--disable-setuid-sandbox",+ ],defaultViewport: {width: 1280, height: 1024},headless: true,});