Fix tests

This commit is contained in:
windingwind 2025-05-08 23:27:53 +02:00
parent 5bf460771c
commit 0ba7705754

View file

@ -1157,8 +1157,8 @@ describe("Item pane", function () {
let attachmentRow = attachmentsBox.querySelector(`attachment-row[attachment-id="${attachment.id}"]`);
attachmentRow._annotationButton.click();
await Zotero.Promise.delay(100);
// Should select attachment
assert.equal(ZoteroPane.getSelectedItems(true)[0], attachment.id);
// Should select annotations
assert.deepEqual(ZoteroPane.getSelectedItems(true), [_annotation.id]);
});
it("should open attachment on double-clicking attachments pane preview", async function () {