Skip to content

Commit

Permalink
Merge pull request #658 from Gaurav0/merge_master_again
Browse files Browse the repository at this point in the history
Merge branch 'master' into 2-x
  • Loading branch information
alexander-alvarez authored Dec 17, 2018
2 parents 4b505ac + 8884da7 commit c478c19
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 706 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"ember-cli": "~3.1.4",
"ember-cli-app-version": "^3.2.0",
"ember-cli-autoprefixer": "^0.8.1",
"ember-cli-changelog": "0.3.4",
"ember-cli-changelog": "html-next/ember-cli-changelog#v0.4.0-beta.1",
"ember-cli-code-coverage": "^0.4.2",
"ember-cli-dependency-checker": "^2.1.0",
"ember-cli-eslint": "^4.2.1",
Expand Down
12 changes: 8 additions & 4 deletions tests/integration/components/light-table-occlusion-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,25 @@ module('Integration | Component | light table | occlusion', function(hooks) {
assert.equal(find('*').textContent.trim(), '');
});

test('takes 50 rows, renders some rows with scrollbar and occludes the rest', async function(assert) {
assert.expect(3);
test('scrolled to bottom', async function(assert) {
assert.expect(4);

this.set('table', new Table(Columns, this.server.createList('user', 50)));

this.set('onScrolledToBottom', () => {
assert.ok(true);
});

await render(hbs `
{{#light-table table height='40vh' occlusion=true estimatedRowHeight=30 as |t|}}
{{t.head fixed=true}}
{{t.body}}
{{t.body onScrolledToBottom=(action onScrolledToBottom)}}
{{/light-table}}
`);

assert.ok(findAll('.vertical-collection tbody.lt-body tr.lt-row').length < 30, 'only some rows are rendered');

let scrollContainer = 'vertical-collection';
let scrollContainer = '.lt-scrollable.tse-scrollable.vertical-collection';
let { scrollHeight } = find(scrollContainer);

assert.ok(findAll(scrollContainer).length > 0, 'scroll container was rendered');
Expand Down
Loading

0 comments on commit c478c19

Please sign in to comment.