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_lib: Supply missing $eval arugment.

Anders Kaseorgad540dac3ad1
diff --git a/frontend_tests/puppeteer_lib/common.js b/frontend_tests/puppeteer_lib/common.js
index cdf6f8829f6..2711ef36e31 100644
--- a/frontend_tests/puppeteer_lib/common.js
+++ b/frontend_tests/puppeteer_lib/common.js
@@ -117,11 +117,15 @@ class CommonUtils {
const name_selector = `${form_selector} [name="${name}"]`;
const value = params[name];
if (typeof value === "boolean") {
- await page.$eval(name_selector, (el, value) => {
- if (el.checked !== value) {
- el.click();
- }
- });
+ await page.$eval(
+ name_selector,
+ (el, value) => {
+ if (el.checked !== value) {
+ el.click();
+ }
+ },
+ value,
+ );
} else if (await is_dropdown(page, name)) {
await page.select(name_selector, params[name]);
} else {