From d1c6ee33be8ef8ed7ff9baaaad00008624d1699f Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Mon, 28 Jul 2025 22:48:57 +0200 Subject: [PATCH] Fix plugin API test failure Fix: #5411 --- test/tests/pluginAPITest.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/tests/pluginAPITest.js b/test/tests/pluginAPITest.js index 33a58b51e3..3e54bfbe45 100644 --- a/test/tests/pluginAPITest.js +++ b/test/tests/pluginAPITest.js @@ -186,9 +186,10 @@ describe("Plugin API", function () { await ZoteroPane.viewItems([attachment]); let tabID = Zotero_Tabs.selectedID; - await Zotero.Reader.getByTabID(tabID)._waitForReader(); + let reader = Zotero.Reader.getByTabID(tabID); + await reader._initPromise; // Ensure context pane is open - ZoteroContextPane.splitter.setAttribute("state", "open"); + ZoteroContextPane.collapsed = false; result = await itemChangePromise; let itemDetails = ZoteroContextPane.context._getItemContext(tabID);