puppeteer: Fix the selector for opening the message action menu.

In this 90041ff453,
we remove the `info` class from the message action
menu, that's why it was failing.

This commit replaces it with the correct selector.
This commit is contained in:
Riken Shah 2021-06-12 09:14:06 +00:00 committed by Steve Howell
parent c18ef0b93f
commit 405073d590
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import common from "../puppeteer_lib/common";
async function trigger_edit_last_message(page: Page): Promise<void> {
await page.evaluate(() => {
const msg = $("#zhome .message_row").last();
msg.find(".info").trigger("click");
msg.find(".message_control_button.actions_hover").trigger("click");
$(".popover_edit_message").trigger("click");
});
await page.waitForSelector(".message_edit_content", {visible: true});