Fix error deleting selected library

This commit is contained in:
Dan Stillman 2017-02-24 01:34:22 -05:00
parent 1633a73c3e
commit f7074a75b5
2 changed files with 10 additions and 1 deletions

View file

@ -409,6 +409,10 @@ describe("Zotero.CollectionTreeView", function() {
// Group, collections, Duplicates, Unfiled, and trash
assert.equal(cv.rowCount, originalRowCount + 9);
// Select group
yield cv.selectLibrary(group.libraryID);
yield waitForItemsLoad(win);
var spy = sinon.spy(cv, "refresh");
try {
yield group.eraseTx();