Fix test failure after 26a5e2900a
This commit is contained in:
parent
d3942ad1f0
commit
612fec8961
1 changed files with 6 additions and 1 deletions
|
@ -614,8 +614,13 @@ describe("Zotero.ItemTree", function() {
|
||||||
var item3 = await createDataObject('item', { title: title + " 5" });
|
var item3 = await createDataObject('item', { title: title + " 5" });
|
||||||
var item4 = await createDataObject('item', { title: title + " 7" });
|
var item4 = await createDataObject('item', { title: title + " 7" });
|
||||||
|
|
||||||
const colIndex = itemsView.tree._getColumns().findIndex(column => column.dataKey == 'title');
|
// Sort by title
|
||||||
|
var colIndex = itemsView.tree._getColumns().findIndex(column => column.dataKey == 'firstCreator');
|
||||||
await itemsView.tree._columns.toggleSort(colIndex);
|
await itemsView.tree._columns.toggleSort(colIndex);
|
||||||
|
await waitForItemsLoad(win);
|
||||||
|
colIndex = itemsView.tree._getColumns().findIndex(column => column.dataKey == 'title');
|
||||||
|
await itemsView.tree._columns.toggleSort(colIndex);
|
||||||
|
await waitForItemsLoad(win);
|
||||||
|
|
||||||
// Check initial sort order
|
// Check initial sort order
|
||||||
assert.equal(itemsView.getRow(0).ref.getField('title'), title + " 1");
|
assert.equal(itemsView.getRow(0).ref.getField('title'), title + " 1");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue