@@ -67,16 +67,17 @@ d('Onchain', () => {
6767 await element ( by . id ( 'TagsAdd' ) ) . tap ( ) ;
6868 await element ( by . id ( 'TagInputReceive' ) ) . typeText ( `rtag${ i } ` ) ;
6969 await element ( by . id ( 'TagInputReceive' ) ) . tapReturnKey ( ) ;
70+ await sleep ( 300 ) ; // wait for keyboard to hide
7071 await element ( by . id ( 'ShowQrReceive' ) ) . tap ( ) ;
7172
7273 await rpc . sendToAddress ( wAddress , '1' ) ;
7374 await rpc . generateToAddress ( 1 , await rpc . getNewAddress ( ) ) ;
7475 await electrum ?. waitForSync ( ) ;
7576
76- await waitFor ( element ( by . id ( 'NewTxPrompt ' ) ) )
77+ await waitFor ( element ( by . id ( 'ReceivedTransaction ' ) ) )
7778 . toBeVisible ( )
7879 . withTimeout ( 10000 ) ;
79- await element ( by . id ( 'NewTxPrompt ' ) ) . swipe ( 'down' ) ; // close Receive screen
80+ await element ( by . id ( 'ReceivedTransaction ' ) ) . swipe ( 'down' ) ; // close Receive screen
8081 await sleep ( 1000 ) ; // animation
8182 }
8283
@@ -140,7 +141,7 @@ d('Onchain', () => {
140141 ) . toHaveText ( '0' ) ;
141142
142143 // check Activity
143- await element ( by . id ( 'HomeScrollView' ) ) . scroll ( 1000 , 'down' , 0 ) ;
144+ await element ( by . id ( 'HomeScrollView' ) ) . scroll ( 1000 , 'down' , 0 , 0.5 ) ;
144145 await expect ( element ( by . id ( 'ActivityShort-1' ) ) ) . toBeVisible ( ) ;
145146 await expect ( element ( by . id ( 'ActivityShort-2' ) ) ) . toBeVisible ( ) ;
146147 await expect ( element ( by . id ( 'ActivityShort-3' ) ) ) . toBeVisible ( ) ;
@@ -200,7 +201,7 @@ d('Onchain', () => {
200201 await element ( by . id ( 'Tag-stag-delete' ) ) . tap ( ) ;
201202
202203 // calendar, previous month, 0 transactions
203- await element ( by . id ( 'TimeRangePrompt ' ) ) . tap ( ) ;
204+ await element ( by . id ( 'DatePicker ' ) ) . tap ( ) ;
204205 await expect ( element ( by . id ( 'Today' ) ) ) . toBeVisible ( ) ;
205206 await element ( by . id ( 'PrevMonth' ) ) . tap ( ) ;
206207 await expect ( element ( by . id ( 'Today' ) ) ) . not . toExist ( ) ;
@@ -210,7 +211,7 @@ d('Onchain', () => {
210211 await expect ( element ( by . id ( 'Activity-1' ) ) ) . not . toExist ( ) ;
211212
212213 // calendar, current date, 3 transactions
213- await element ( by . id ( 'TimeRangePrompt ' ) ) . tap ( ) ;
214+ await element ( by . id ( 'DatePicker ' ) ) . tap ( ) ;
214215 await element ( by . id ( 'CalendarClearButton' ) ) . tap ( ) ;
215216 await element ( by . id ( 'NextMonth' ) ) . tap ( ) ;
216217 await element ( by . id ( 'Today' ) ) . tap ( ) ;
@@ -237,10 +238,10 @@ d('Onchain', () => {
237238 // await rpc.generateToAddress(1, await rpc.getNewAddress());
238239 // await electrum?.waitForSync();
239240
240- await waitFor ( element ( by . id ( 'NewTxPrompt ' ) ) )
241+ await waitFor ( element ( by . id ( 'ReceivedTransaction ' ) ) )
241242 . toBeVisible ( )
242243 . withTimeout ( 10000 ) ;
243- await element ( by . id ( 'NewTxPrompt ' ) ) . swipe ( 'down' ) ; // close Receive screen
244+ await element ( by . id ( 'ReceivedTransaction ' ) ) . swipe ( 'down' ) ; // close Receive screen
244245 await sleep ( 1000 ) ; // animation
245246
246247 const coreAddress = await rpc . getNewAddress ( ) ;
@@ -307,7 +308,7 @@ d('Onchain', () => {
307308 ) . toHaveText ( '0' ) ;
308309
309310 // check number of outputs for send tx
310- await element ( by . id ( 'HomeScrollView' ) ) . scroll ( 1000 , 'down' , 0 ) ;
311+ await element ( by . id ( 'HomeScrollView' ) ) . scroll ( 1000 , 'down' , 0 , 0.5 ) ;
311312 await expect ( element ( by . id ( 'ActivityShort-1' ) ) ) . toBeVisible ( ) ;
312313 await expect ( element ( by . id ( 'ActivityShort-2' ) ) ) . toBeVisible ( ) ;
313314 await element ( by . id ( 'ActivityShowAll' ) ) . tap ( ) ;
0 commit comments