diff --git a/test/tests/zoteroPaneTest.js b/test/tests/zoteroPaneTest.js index 0fdbb92efa..ccc4ef0323 100644 --- a/test/tests/zoteroPaneTest.js +++ b/test/tests/zoteroPaneTest.js @@ -2006,6 +2006,8 @@ describe("ZoteroPane", function () { // Open the menupopup so it gets populated let popup = doc.getElementById('zotero-copy-collection-popup'); popup.openPopup(); + // Wait a moment to populate the popup + await Zotero.Promise.delay(); // Find the menuitem for collection B and click it let collectionMenuItem = popup.querySelector(`[value="C${collectionB.id}"]`);