Fix hanging tests after c384fef867
This commit is contained in:
parent
aaac18ced6
commit
6dfd8965f1
1 changed files with 4 additions and 4 deletions
|
@ -20,9 +20,7 @@ describe("ZoteroPane", function() {
|
|||
var collection1 = await createDataObject('collection');
|
||||
var collection2 = await createDataObject('collection', { parentID: collection1.id, deleted: true });
|
||||
|
||||
var userLibraryID = Zotero.Libraries.userLibraryID;
|
||||
await zp.collectionsView.selectByID('T' + userLibraryID);
|
||||
await waitForItemsLoad(win);
|
||||
await selectTrash(win);
|
||||
|
||||
var row = zp.itemsView.getRowIndexByID(collection2.treeViewID);
|
||||
zp.itemsView.selection.select(row);
|
||||
|
@ -34,9 +32,11 @@ describe("ZoteroPane", function() {
|
|||
var rows = win.document.querySelectorAll('.highlighted');
|
||||
assert.lengthOf(rows, 1);
|
||||
|
||||
zp.collectionsView.setHighlightedRows();
|
||||
await zp.collectionsView.setHighlightedRows();
|
||||
|
||||
spy.restore();
|
||||
// Switch back to library to avoid breaking other tests
|
||||
await selectLibrary(win);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue