Skip to content

Commit ec4969a

Browse files
committed
Failing test for #747
1 parent fab4fbc commit ec4969a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/integration/components/selection-test.js

+14
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,20 @@ module('Integration | selection', () => {
536536
'After scrolling to bottom, there are still no rows selected'
537537
);
538538
});
539+
540+
test('Issue 747: Programmatically select an un-rendered row', async function(assert) {
541+
let rows = generateRows(200, 1);
542+
await generateTable(this, { rows, bufferSize: 1 });
543+
544+
let renderedRowCount = table.rows.length;
545+
assert.ok(renderedRowCount < 200, 'some rows are occluded');
546+
547+
// Select rows at the end that will not all have been rendered yet
548+
this.set('selection', rows.slice(-5));
549+
550+
await table.rows.objectAt(0).checkbox.click();
551+
assert.ok(true, 'no error');
552+
});
539553
});
540554
});
541555
});

0 commit comments

Comments
 (0)