Skip to content

Commit 06b7e6a

Browse files
committed
MAGETWO-63009: Jasmine test randomly fails on bamboo
1 parent c86d777 commit 06b7e6a

File tree

1 file changed

+2
-4
lines changed
  • dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/paging

1 file changed

+2
-4
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/paging/paging.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ define([
3838

3939
describe('onPagesChange method', function () {
4040
it('pages amount became less than current', function () {
41-
paging.current = 4;
42-
expect(paging.current).toBe(4);
43-
paging.pageSize = 3;
41+
paging.updateCursor = jasmine.createSpy();
4442
paging.onPagesChange();
45-
expect(paging.current).toBe(3);
43+
expect(paging.updateCursor).toHaveBeenCalled();
4644
});
4745
});
4846

0 commit comments

Comments
 (0)