Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppeteer: Make fill_form function empty text fields before filling.
Dinesh28350920106a
diff --git a/frontend_tests/puppeteer_lib/common.js b/frontend_tests/puppeteer_lib/common.jsindex 3dd5b6f8369..599ba626bcb 100644--- a/frontend_tests/puppeteer_lib/common.js+++ b/frontend_tests/puppeteer_lib/common.js@@ -92,6 +92,10 @@ class CommonUtils {}});} else {+ // clear any existing text in the input field before filling.+ await page.$eval(name_selector, (el) => {+ el.value = "";+ });await page.type(name_selector, params[name]);}}