@@ -16,9 +16,9 @@ context("Resize", () => {
16
16
utils . scrollTo ( SCROLL , 0 ) ;
17
17
utils . resizeColumn ( SCROLL + ( SCROLL % config . cellWidth ) , 1 , RESIZE_WIDTH , {
18
18
beforePointerUp : ( ) => {
19
- utils . resizeHint ( ) . should ( "be.visible" ) ;
19
+ utils . resizeHintColumn ( ) . should ( "be.visible" ) ;
20
20
// 🟠 TODO - hint should contain exact value
21
- // utils.resizeHint ().and('contain.text', `Width: ${config.cellWidth + RESIZE_WIDTH}px`)
21
+ // utils.resizeHintColumn ().and('contain.text', `Width: ${config.cellWidth + RESIZE_WIDTH}px`)
22
22
} ,
23
23
} ) ;
24
24
@@ -33,9 +33,9 @@ context("Resize", () => {
33
33
- RESIZE_WIDTH ,
34
34
{
35
35
beforePointerUp : ( ) => {
36
- utils . resizeHint ( ) . should ( "be.visible" ) ;
36
+ utils . resizeHintColumn ( ) . should ( "be.visible" ) ;
37
37
// 🟠 TODO - hint should contain exact value
38
- // utils.resizeHint ().and('contain.text', `Width: ${config.cellWidth}px`)
38
+ // utils.resizeHintColumn ().and('contain.text', `Width: ${config.cellWidth}px`)
39
39
} ,
40
40
}
41
41
) ;
@@ -48,9 +48,9 @@ context("Resize", () => {
48
48
49
49
utils . resizeColumn ( config . cellWidth , utils . getCellYCenter ( ) , RESIZE_WIDTH , {
50
50
beforePointerUp : ( ) => {
51
- utils . resizeHint ( ) . should ( "be.visible" ) ;
51
+ utils . resizeHintColumn ( ) . should ( "be.visible" ) ;
52
52
utils
53
- . resizeHint ( )
53
+ . resizeHintColumn ( )
54
54
. and ( "contain.text" , `Width: ${ config . minCellWidth } px` ) ;
55
55
} ,
56
56
} ) ;
@@ -74,9 +74,9 @@ context("Resize", () => {
74
74
{
75
75
// 17 px - scroll width
76
76
beforePointerUp : ( ) => {
77
- utils . resizeHint ( ) . should ( "be.visible" ) ;
77
+ utils . resizeHintColumn ( ) . should ( "be.visible" ) ;
78
78
utils
79
- . resizeHint ( )
79
+ . resizeHintColumn ( )
80
80
. and ( "contain.text" , `Width: ${ config . minCellWidth } px` ) ;
81
81
} ,
82
82
}
@@ -105,7 +105,7 @@ context("Resize", () => {
105
105
// 17 px - scroll width
106
106
beforePointerUp : ( ) => {
107
107
// 🟠 TODO - hint should contain exact value
108
- utils . resizeHint ( ) . and ( 'contain.text' , `Width: ${ config . cellWidth + RESIZE_WIDTH + 3 } px` )
108
+ utils . resizeHintColumn ( ) . and ( 'contain.text' , `Width: ${ config . cellWidth + RESIZE_WIDTH + 3 } px` )
109
109
} ,
110
110
}
111
111
) ;
@@ -118,29 +118,29 @@ context("Resize", () => {
118
118
119
119
it ( "Should increase and reduce row height on scrolled view with content in vertical axis" , ( ) => { // ✅
120
120
const RESIZE_HEIGHT = 100 ;
121
- const SCROLL = 60 ;
121
+ const SCROLL = 15 ;
122
122
123
123
utils . scrollTo ( 0 , SCROLL ) ;
124
124
utils . resizeRow ( 1 , SCROLL + ( SCROLL % config . cellHeight ) , RESIZE_HEIGHT , {
125
125
beforePointerUp : ( ) => {
126
- utils . resizeHint ( ) . should ( "be.visible" ) ;
127
- utils . resizeHint ( ) . and ( 'contain.text' , `Height: ${ config . cellHeight + RESIZE_HEIGHT } px` )
126
+ utils . resizeHintRow ( ) . should ( "be.visible" ) ;
127
+ utils . resizeHintRow ( ) . and ( 'contain.text' , `Height: ${ config . cellHeight + RESIZE_HEIGHT + 1 } px` )
128
128
} ,
129
129
} ) ;
130
130
131
131
utils . assertElementHeightIsEqual (
132
- utils . getCell ( 0 , 2 ) ,
132
+ utils . getCell ( 0 , 0 ) ,
133
133
config . cellHeight + RESIZE_HEIGHT
134
134
) ;
135
135
136
136
utils . resizeRow ( 1 , SCROLL + RESIZE_HEIGHT + ( SCROLL % config . cellHeight ) , - RESIZE_HEIGHT , {
137
137
beforePointerUp : ( ) => {
138
- utils . resizeHint ( ) . should ( "be.visible" ) ;
139
- utils . resizeHint ( ) . and ( 'contain.text' , `Height: ${ config . cellHeight + 3 } px` )
138
+ utils . resizeHintRow ( ) . should ( "be.visible" ) ;
139
+ utils . resizeHintRow ( ) . and ( 'contain.text' , `Height: ${ config . cellHeight + 3 } px` )
140
140
} ,
141
141
} ) ;
142
142
143
- utils . assertElementHeightIsEqual ( utils . getCell ( 0 , 2 ) , config . cellHeight ) ;
143
+ utils . assertElementHeightIsEqual ( utils . getCell ( 0 , 0 ) , config . cellHeight ) ;
144
144
145
145
} ) ;
146
146
0 commit comments