mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
common: Add a proper delay.
This commit is contained in:
@@ -39,7 +39,9 @@ export const pm_recipient = {
|
|||||||
// a flake where the typeahead doesn't show up.
|
// a flake where the typeahead doesn't show up.
|
||||||
// The flake seems to be due to some method that triggers focus on
|
// The flake seems to be due to some method that triggers focus on
|
||||||
// compose textarea, which causes the typeahead to not show up.
|
// 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.
|
// 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", {
|
const entry = await page.waitForSelector(".typeahead .active a .typeahead-image", {
|
||||||
|
|||||||
Reference in New Issue
Block a user