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.

common: Add a proper delay.

Aman Agrawal8f1f34b2eaea
diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts
index ee373a1a569..78f827cd1a4 100644
--- a/web/e2e-tests/lib/common.ts
+++ b/web/e2e-tests/lib/common.ts
@@ -39,7 +39,9 @@ export const pm_recipient = {
// a flake where the typeahead doesn't show up.
// The flake seems to be due to some method that triggers focus on
// compose textarea, which causes the typeahead to not show up.
- await page.type("#private_message_recipient", recipient, {delay: 200});
+ // Add a delay before typing.
+ await timersPromises.setTimeout(100);
+ await page.type("#private_message_recipient", recipient);
// PM typeaheads always have an image. This ensures we are waiting for the right typeahead to appear.
const entry = await page.waitForSelector(".typeahead .active a .typeahead-image", {