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 collection1 = await createDataObject('collection');
|
||||||
var collection2 = await createDataObject('collection', { parentID: collection1.id, deleted: true });
|
var collection2 = await createDataObject('collection', { parentID: collection1.id, deleted: true });
|
||||||
|
|
||||||
var userLibraryID = Zotero.Libraries.userLibraryID;
|
await selectTrash(win);
|
||||||
await zp.collectionsView.selectByID('T' + userLibraryID);
|
|
||||||
await waitForItemsLoad(win);
|
|
||||||
|
|
||||||
var row = zp.itemsView.getRowIndexByID(collection2.treeViewID);
|
var row = zp.itemsView.getRowIndexByID(collection2.treeViewID);
|
||||||
zp.itemsView.selection.select(row);
|
zp.itemsView.selection.select(row);
|
||||||
|
@ -34,9 +32,11 @@ describe("ZoteroPane", function() {
|
||||||
var rows = win.document.querySelectorAll('.highlighted');
|
var rows = win.document.querySelectorAll('.highlighted');
|
||||||
assert.lengthOf(rows, 1);
|
assert.lengthOf(rows, 1);
|
||||||
|
|
||||||
zp.collectionsView.setHighlightedRows();
|
await zp.collectionsView.setHighlightedRows();
|
||||||
|
|
||||||
spy.restore();
|
spy.restore();
|
||||||
|
// Switch back to library to avoid breaking other tests
|
||||||
|
await selectLibrary(win);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue