Make sure "Unfiled Items" is showing before test

This commit is contained in:
Dan Stillman 2016-03-15 01:17:07 -04:00
parent be04f3d33c
commit 5cd3ab22ba

View file

@ -234,9 +234,12 @@ describe("Zotero.ItemTreeView", function() {
it("should remove items from Unfiled Items when added to a collection", function* () {
var userLibraryID = Zotero.Libraries.userLibraryID;
var collection = yield createDataObject('collection');
var item = yield createDataObject('item', { title: "Unfiled Item" });
yield cv.selectByID("U" + Zotero.Libraries.userLibraryID);
yield zp.setVirtual(userLibraryID, 'unfiled', true);
var selected = yield cv.selectByID("U" + userLibraryID);
assert.ok(selected);
yield waitForItemsLoad(win);
assert.isNumber(zp.itemsView.getRowIndexByID(item.id));
yield Zotero.DB.executeTransaction(function* () {