Skip to content

Commit a400153

Browse files
committed
try to fix test by adding a bit of delay
1 parent bb44ab4 commit a400153

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/loadonscroll_spec.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ describe('Load on scroll', () => {
4141

4242
ias.on('next', spy.next);
4343

44-
cy.scrollTo('bottom', {duration: 300}).then(function() {
45-
expect(spy.next).to.have.been.called;
46-
});
44+
cy.scrollTo('bottom', {duration: 300});
45+
46+
cy.wait(200)
47+
.then(function() {
48+
expect(spy.next).to.have.been.called;
49+
});
4750
});
4851
});
4952

0 commit comments

Comments
 (0)