Fix item selection that requires switching to library root
Broken in c7639f328f
This commit is contained in:
parent
d4569d3640
commit
773a93f55d
2 changed files with 16 additions and 7 deletions
|
@ -481,8 +481,18 @@ describe("Zotero.CollectionTreeView", function() {
|
|||
yield win.ZoteroPane.deleteSelectedCollection();
|
||||
assert.isFalse(cv.getRowIndexByID(id))
|
||||
})
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
describe("#selectItem()", function () {
|
||||
it("should switch to library root if item isn't in collection", async function () {
|
||||
var item = await createDataObject('item');
|
||||
var collection = await createDataObject('collection');
|
||||
await cv.selectItem(item.id);
|
||||
await waitForItemsLoad(win);
|
||||
assert.equal(cv.selection.currentIndex, 0);
|
||||
assert.sameMembers(zp.itemsView.getSelectedItems(), [item]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("#drop()", function () {
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue