diff --git a/test/content/support.js b/test/content/support.js index 5a064505d4..3540e195be 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -348,6 +348,11 @@ function waitForCallback(cb, interval, timeout) { } +async function delay(ms) { + return Zotero.Promise.delay(ms); +} + + function clickOnItemsRow(win, itemsView, row) { itemsView._treebox.scrollToRow(row); let elem = win.document.querySelector(`#${itemsView.id}-row-${row}`);