Try to fix unstable attachments pane test

This commit is contained in:
windingwind 2024-05-29 21:27:13 +08:00
parent 4a9ce6b82b
commit 5ebd6c4141

View file

@ -518,6 +518,8 @@ describe("Item pane", function () {
await waitForScrollToPane(itemDetails, paneID);
await waitForPreviewBoxRender(attachmentsBox);
// TEMP: wait for a bit to ensure the preview is rendered?
await Zotero.Promise.delay(100);
assert.isTrue(itemDetails.isPaneVisible(paneID));
assert.equal(attachmentsBox._syncRenderItemID, item.id);
assert.equal(attachmentsBox._asyncRenderItemID, item.id);