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: Remove set_pm_recipient.

Dinesh56c5e0318fbb
diff --git a/frontend_tests/puppeteer_lib/common.js b/frontend_tests/puppeteer_lib/common.js
index 9d0154dba62..3dd5b6f8369 100644
--- a/frontend_tests/puppeteer_lib/common.js
+++ b/frontend_tests/puppeteer_lib/common.js
@@ -64,11 +64,6 @@ class CommonUtils {
});
}
- async set_pm_recipient(page, recipient) {
- await page.type("#private_message_recipient", recipient);
- await page.keyboard.press("Enter");
- }
-
/**
* This function takes a params object whose fields
* are referenced by name attribute of an input field and
@@ -258,7 +253,7 @@ class CommonUtils {
await page.keyboard.press("KeyX");
const recipients = params.recipient.split(", ");
for (let i = 0; i < recipients.length; i += 1) {
- await this.set_pm_recipient(page, recipients[i]);
+ await this.pm_recipient.set(page, recipients[i]);
}
delete params.recipient;
} else {