Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message-screenshot: Update for removal of navigate global.
Anders Kaseorg62c5782f66bf
diff --git a/tools/message-screenshot.js b/tools/message-screenshot.jsindex b5939329fcd..fab6da185c4 100644--- a/tools/message-screenshot.js+++ b/tools/message-screenshot.js@@ -1,6 +1,6 @@"use strict";-/* global $, CSS, navigate */+/* global $, CSS */const path = require("path");@@ -60,8 +60,8 @@ async function run() {// remove unread marker and don't select messageconst marker = `#zfilt${CSS.escape(options.messageId)} .unread_marker`;await page.evaluate((sel) => $(sel).remove(), marker);- await page.evaluate(() => navigate.up());const messageBox = await page.$(messageSelector);+ await page.keyboard.press("KeyK");const messageGroup = (await messageBox.$x(".."))[0];// Compute screenshot area, with some padding around the message groupconst clip = {...(await messageGroup.boundingBox())};