Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmacleod committed Mar 19, 2021
1 parent 238cfa7 commit 4d56890
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/integration/components/scroll-indicators-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,15 @@ module('Integration | scroll indicators', function() {
},
});

// not necessarily 100px wide because of integer division
let lastHeader = table.headers.objectAt(table.headers.length - 1);

assert.equal(
table.isScrollIndicatorRendered('right'),
true,
'right scroll indicator is initially shown'
);
assert.ok(isOffset('right', 100), 'right scroll indicator is offset');
assert.ok(isOffset('right', lastHeader.width), 'right scroll indicator is offset');
assert.equal(
table.isScrollIndicatorRendered('left'),
false,
Expand All @@ -154,7 +157,7 @@ module('Integration | scroll indicators', function() {
true,
'right scroll indicator is shown during partial scroll'
);
assert.ok(isOffset('right', 100), 'right scroll indicator is offset');
assert.ok(isOffset('right', lastHeader.width), 'right scroll indicator is offset');
assert.equal(
table.isScrollIndicatorRendered('left'),
true,
Expand Down

0 comments on commit 4d56890

Please sign in to comment.