@@ -16,9 +16,9 @@ context("Resize", () => {
1616 utils . scrollTo ( SCROLL , 0 ) ;
1717 utils . resizeColumn ( SCROLL + ( SCROLL % config . cellWidth ) , 1 , RESIZE_WIDTH , {
1818 beforePointerUp : ( ) => {
19- utils . resizeHint ( ) . should ( "be.visible" ) ;
19+ utils . resizeHintColumn ( ) . should ( "be.visible" ) ;
2020 // 🟠 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`)
2222 } ,
2323 } ) ;
2424
@@ -33,9 +33,9 @@ context("Resize", () => {
3333 - RESIZE_WIDTH ,
3434 {
3535 beforePointerUp : ( ) => {
36- utils . resizeHint ( ) . should ( "be.visible" ) ;
36+ utils . resizeHintColumn ( ) . should ( "be.visible" ) ;
3737 // 🟠 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`)
3939 } ,
4040 }
4141 ) ;
@@ -48,9 +48,9 @@ context("Resize", () => {
4848
4949 utils . resizeColumn ( config . cellWidth , utils . getCellYCenter ( ) , RESIZE_WIDTH , {
5050 beforePointerUp : ( ) => {
51- utils . resizeHint ( ) . should ( "be.visible" ) ;
51+ utils . resizeHintColumn ( ) . should ( "be.visible" ) ;
5252 utils
53- . resizeHint ( )
53+ . resizeHintColumn ( )
5454 . and ( "contain.text" , `Width: ${ config . minCellWidth } px` ) ;
5555 } ,
5656 } ) ;
@@ -74,9 +74,9 @@ context("Resize", () => {
7474 {
7575 // 17 px - scroll width
7676 beforePointerUp : ( ) => {
77- utils . resizeHint ( ) . should ( "be.visible" ) ;
77+ utils . resizeHintColumn ( ) . should ( "be.visible" ) ;
7878 utils
79- . resizeHint ( )
79+ . resizeHintColumn ( )
8080 . and ( "contain.text" , `Width: ${ config . minCellWidth } px` ) ;
8181 } ,
8282 }
@@ -105,7 +105,7 @@ context("Resize", () => {
105105 // 17 px - scroll width
106106 beforePointerUp : ( ) => {
107107 // 🟠 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` )
109109 } ,
110110 }
111111 ) ;
@@ -115,4 +115,33 @@ context("Resize", () => {
115115 config . cellWidth + RESIZE_WIDTH
116116 ) ;
117117 } ) ;
118+
119+ it ( "Should increase and reduce row height on scrolled view with content in vertical axis" , ( ) => { // ✅
120+ const RESIZE_HEIGHT = 100 ;
121+ const SCROLL = 15 ;
122+
123+ utils . scrollTo ( 0 , SCROLL ) ;
124+ utils . resizeRow ( 1 , SCROLL + ( SCROLL % config . cellHeight ) , RESIZE_HEIGHT , {
125+ beforePointerUp : ( ) => {
126+ utils . resizeHintRow ( ) . should ( "be.visible" ) ;
127+ utils . resizeHintRow ( ) . and ( 'contain.text' , `Height: ${ config . cellHeight + RESIZE_HEIGHT + 1 } px` )
128+ } ,
129+ } ) ;
130+
131+ utils . assertElementHeightIsEqual (
132+ utils . getCell ( 0 , 0 ) ,
133+ config . cellHeight + RESIZE_HEIGHT
134+ ) ;
135+
136+ utils . resizeRow ( 1 , SCROLL + RESIZE_HEIGHT + ( SCROLL % config . cellHeight ) , - RESIZE_HEIGHT , {
137+ beforePointerUp : ( ) => {
138+ utils . resizeHintRow ( ) . should ( "be.visible" ) ;
139+ utils . resizeHintRow ( ) . and ( 'contain.text' , `Height: ${ config . cellHeight + 3 } px` )
140+ } ,
141+ } ) ;
142+
143+ utils . assertElementHeightIsEqual ( utils . getCell ( 0 , 0 ) , config . cellHeight ) ;
144+
145+ } ) ;
146+
118147} ) ;
0 commit comments