Fix item pane test failure

fix: #5421
This commit is contained in:
windingwind 2025-07-30 10:09:39 +02:00 • committed by Dan Stillman
parent 747a3f7a9f
commit 0ce54e2b14

View file

@ -708,6 +708,7 @@ describe("Item pane", function () {
Zotero.Prefs.set("panes.attachments.open", true);
Zotero.Prefs.set("showAttachmentPreview", true);
Zotero_Tabs.select("zotero-pane");
win.resizeTo(1000, 800);
});
afterEach(function () {
@ -715,6 +716,10 @@ describe("Item pane", function () {
Zotero_Tabs.closeAll();
});
after(function () {
win.resizeTo(1000, 800);
});
it("should show attachments pane in library for regular item", async function () {
// Regular item: show
let attachmentsBox = ZoteroPane.itemPane._itemDetails.getPane(paneID);