Skip to content

Commit

Permalink
Fix test comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolanus committed May 12, 2018
1 parent b6d11eb commit a312054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/simple-scroll.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Simple Scroll page', () => {
browser.sleep(1300).then(() => {
getScrollPos().then((pos: number) => {
// Should be scrolled all the way to the bottom
expect(pos).toBeGreaterThan(bodyScrollHeight - windowHeight);
expect(pos).toBeGreaterThanOrEqual(bodyScrollHeight - windowHeight);
});
});
});
Expand All @@ -56,7 +56,7 @@ describe('Simple Scroll page', () => {
browser.sleep(1250).then(() => {
getScrollPos().then((pos: number) => {
// Should be scrolled all the way to the bottom
expect(pos).toBeGreaterThan(bodyScrollHeight - windowHeight);
expect(pos).toBeGreaterThanOrEqual(bodyScrollHeight - windowHeight);
});
});
});
Expand Down

0 comments on commit a312054

Please sign in to comment.