@@ -67,6 +67,9 @@ describe('My Login application', () => {
67
67
. flutterByValueKey$ ( 'double_tap_button' )
68
68
. flutterByText$ ( 'Double Tap' ) ;
69
69
expect ( await element . getText ( ) ) . toEqual ( 'Double Tap' ) ;
70
+ const size = await element . getSize ( ) ;
71
+ expect ( size . width ) . toBeGreaterThan ( 0 ) ;
72
+ expect ( size . height ) . toBeGreaterThan ( 0 ) ;
70
73
await browser . flutterDoubleClick ( {
71
74
element : element ,
72
75
} ) ;
@@ -101,6 +104,19 @@ describe('My Login application', () => {
101
104
expect ( await message . getText ( ) ) . toEqual ( 'Hello world' ) ;
102
105
} ) ;
103
106
107
+ it . only ( 'Nested Scroll Test' , async ( ) => {
108
+ await performLogin ( ) ;
109
+ await openScreen ( 'Nested Scroll' ) ;
110
+ const parentElement = await browser . flutterScrollTillVisible ( {
111
+ finder : await browser . flutterByText ( 'Parent Element 4' ) ,
112
+ scrollDirection : 'down' ,
113
+ } ) ;
114
+ await browser . flutterScrollTillVisible ( {
115
+ finder : await parentElement . flutterByValueKey ( '' ) ,
116
+ scrollView : parentElement ,
117
+ scrollDirection : 'down' ,
118
+ } ) ;
119
+ } ) ;
104
120
it ( 'Scroll Test' , async ( ) => {
105
121
await performLogin ( ) ;
106
122
await openScreen ( 'Vertical Swiping' ) ;
0 commit comments