File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ export async function acceptAppNotificationAlert(
435435export async function doNavigationClose ( ) {
436436 await tap ( 'HeaderMenu' ) ;
437437 await tap ( 'DrawerWallet' ) ;
438+ await sleep ( 500 ) ;
438439}
439440
440441export async function getSeed ( ) : Promise < string > {
@@ -671,6 +672,8 @@ export async function receiveOnchainFunds(
671672}
672673
673674export type ToastId =
675+ | 'BoostSuccessToast'
676+ | 'BoostFailureToast'
674677 | 'LnurlPayAmountTooLowToast'
675678 | 'SpendingBalanceReadyToast'
676679 | 'BalanceUnitSwitchedToast'
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
1818 waitForBackup ,
1919 restoreWallet ,
2020 enterAddress ,
21+ waitForToast ,
2122} from '../helpers/actions' ;
2223import { bitcoinURL } from '../helpers/constants' ;
2324import initElectrum from '../helpers/electrum' ;
@@ -74,6 +75,7 @@ describe('@boost - Boost', () => {
7475 await tap ( 'Minus' ) ;
7576 await tap ( 'RecommendedFeeButton' ) ;
7677 await dragOnElement ( 'GRAB' , 'right' , 0.95 ) ; // Swipe to confirm
78+ await waitForToast ( 'BoostSuccessToast' ) ;
7779
7880 // check Activity
7981 await elementById ( 'BoostingIcon' ) . waitForDisplayed ( ) ;
@@ -189,7 +191,8 @@ describe('@boost - Boost', () => {
189191 await tap ( 'Minus' ) ;
190192 await tap ( 'RecommendedFeeButton' ) ;
191193 await dragOnElement ( 'GRAB' , 'right' , 0.95 ) ; // Swipe to confirm
192-
194+ await waitForToast ( 'BoostSuccessToast' ) ;
195+
193196 // check Activity
194197 await elementById ( 'BoostingIcon' ) . waitForDisplayed ( ) ;
195198 await elementById ( 'ActivityShort-0' ) . waitForDisplayed ( ) ;
You can’t perform that action at this time.
0 commit comments