@@ -79,6 +79,7 @@ describe('@boost - Boost', () => {
7979 await elementById ( 'ActivityShort-0' ) . waitForDisplayed ( ) ;
8080
8181 // no additional boost tx item on iOS, there is one on Android
82+ // https://github.com/synonymdev/bitkit-android/issues/463
8283 const showsBoostTxItem = driver . isAndroid ;
8384 if ( showsBoostTxItem ) {
8485 await expect ( elementById ( 'ActivityShort-1' ) ) . toBeDisplayed ( ) ;
@@ -269,11 +270,15 @@ describe('@boost - Boost', () => {
269270
270271 // check activity after restore
271272 await swipeFullScreen ( 'up' ) ;
272- await elementById ( ' BoostingIcon') . waitForDisplayed ( ) ;
273- await elementById ( 'ActivityShort-0' ) . waitForDisplayed ( ) ;
273+ ( await elementByIdWithin ( 'ActivityShort-0' , ' BoostingIcon') ) . waitForDisplayed ( ) ;
274+ ( await elementByIdWithin ( 'ActivityShort-1' , 'BoostingIcon' ) ) . waitForDisplayed ( ) ;
274275 await tap ( 'ActivityShort-0' ) ;
275276 await elementById ( 'BoostedButton' ) . waitForDisplayed ( ) ;
276277 await elementById ( 'StatusBoosting' ) . waitForDisplayed ( ) ;
278+ await doNavigationClose ( ) ;
279+ await tap ( 'ActivityShort-1' ) ;
280+ await elementById ( 'BoostedButton' ) . waitForDisplayed ( ) ;
281+ await elementById ( 'StatusRemoved' ) . waitForDisplayed ( ) ;
277282
278283 // mine new block
279284 await mineBlocks ( rpc , 1 ) ;
@@ -286,11 +291,11 @@ describe('@boost - Boost', () => {
286291 await attemptRefreshOnHomeScreen ( ) ;
287292 await swipeFullScreen ( 'up' ) ;
288293 // TEMP: refresh until proper events available
289- await expect ( elementById ( 'BoostingIcon' ) ) . not . toBeDisplayed ( ) ;
290294 await elementById ( 'ActivityShort-0' ) . waitForDisplayed ( ) ;
291295 await tap ( 'ActivityShort-0' ) ;
292296 await elementById ( 'StatusConfirmed' ) . waitForDisplayed ( ) ;
293297 await doNavigationClose ( ) ;
298+ ( await elementByIdWithin ( 'ActivityShort-1' , 'BoostingIcon' ) ) . waitForDisplayed ( ) ;
294299 await tap ( 'ActivityShort-1' )
295300 await elementById ( 'StatusRemoved' ) . waitForDisplayed ( ) ;
296301 } ) ;
0 commit comments