Fix a broken item tree test (since b05e22fa)

This commit is contained in:
Adomas Venčkauskas 2021-08-27 16:44:50 +03:00
parent 7019544b48
commit b47f5f51e7

View file

@ -62,7 +62,9 @@ describe("Zotero.ItemTree", function() {
it("should expand collapsed parents with matching children when issuing a Select All command", async function () {
itemsView.collapseAllRows();
var selected = itemsView.getSelectedItems(true);
assert.lengthOf(selected, 0);
// After collapse the parent item is selected
assert.lengthOf(selected, 1);
assert.equal(selected[0], parentItem.id);
itemsView.tree._onKeyDown(selectAllEvent);
selected = itemsView.getSelectedItems(true);