Fix plugin API test failure

Fix: #5411
This commit is contained in:
windingwind 2025-07-28 22:48:57 +02:00 • committed by Dan Stillman
parent a53e474f9c
commit d1c6ee33be

View file

@ -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);