File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
functional/tests/app/Magento/Reports/Test/TestCase
js/jasmine/tests/app/code/Magento/Ui/base/js/grid/paging Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 14
14
<constraint name =" Magento\Reports\Test\Constraint\AssertAbandonedCartCustomerInfoResult" />
15
15
</variation >
16
16
<variation name =" AbandonedCartsReportEntityTestVariation2" >
17
- <data name =" tag" xsi : type =" string" >stable:no</data >
18
17
<data name =" description" xsi : type =" string" >add two products to cart as registered user and check product in Report</data >
19
18
<data name =" customer/dataset" xsi : type =" string" >default</data >
20
19
<data name =" products" xsi : type =" string" >catalogProductSimple::product_100_dollar,catalogProductSimple::product_100_dollar</data >
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
/*eslint max-nested-callbacks: 0*/
7
-
8
7
define ( [
9
8
'Magento_Ui/js/grid/paging/paging'
10
9
] , function ( Paging ) {
@@ -29,23 +28,18 @@ define([
29
28
30
29
it ( 'normal + boundary values' , function ( ) {
31
30
expect ( paging . normalize ( 1 ) ) . toBe ( 1 ) ;
32
- expect ( paging . normalize ( 2 ) ) . toBe ( 2 ) ;
33
- expect ( paging . normalize ( 4 ) ) . toBe ( 4 ) ;
34
31
} ) ;
35
32
36
33
it ( 'out of boundary values' , function ( ) {
37
34
expect ( paging . normalize ( 0 ) ) . toBe ( 1 ) ;
38
- expect ( paging . normalize ( 5 ) ) . toBe ( 4 ) ;
39
35
} ) ;
40
36
} ) ;
41
37
42
38
describe ( 'onPagesChange method' , function ( ) {
43
- it ( 'pages amount became less than current' , function ( ) {
44
- paging . current = 4 ;
45
- expect ( paging . current ) . toBe ( 4 ) ;
46
- paging . pageSize = 3 ;
39
+ it ( 'Check call "onPagesChange" method' , function ( ) {
40
+ paging . updateCursor = jasmine . createSpy ( ) ;
47
41
paging . onPagesChange ( ) ;
48
- expect ( paging . current ) . toBe ( 3 ) ;
42
+ expect ( paging . updateCursor ) . toHaveBeenCalled ( ) ;
49
43
} ) ;
50
44
} ) ;
51
45
You can’t perform that action at this time.
0 commit comments