Fix intermittent item selection failure

This commit is contained in:
Dan Stillman 2017-09-10 03:18:25 -04:00
parent d271683968
commit 2901174ba3
4 changed files with 14 additions and 9 deletions

View file

@ -62,6 +62,14 @@ describe("Zotero.CollectionTreeView", function() {
assert.isTrue(cv.isContainerOpen(group1Row));
assert.isFalse(cv.isContainerOpen(group2Row));
});
it("should update associated item tree view", function* () {
var collection = yield createDataObject('collection');
var item = yield createDataObject('item', { collections: [collection.id] });
yield cv.reload();
yield cv.selectCollection(collection.id);
yield cv.selectItem(item.id);
});
});
describe("collapse/expand", function () {