@@ -25,7 +25,7 @@ describe('@numberpad - NumberPad', () => {
2525 electrum = await initElectrum ( ) ;
2626 await reinstallApp ( ) ;
2727 await completeOnboarding ( ) ;
28- await receiveOnchainFunds ( { sats : 10_000 } ) ;
28+ await receiveOnchainFunds ( { sats : 500_000_000 , expectHighBalanceWarning : true } ) ;
2929 } ) ;
3030
3131 after ( async ( ) => {
@@ -89,11 +89,11 @@ async function modernDenominationChecks(mode: NumberpadMode) {
8989
9090 await tap ( 'N000' ) ;
9191 await expectText ( '123 000' ) ;
92- await checkContinueButton ( mode , { aboveBalance : true } ) ;
92+ await checkContinueButton ( mode ) ;
9393
9494 // Switch to USD
9595 await tap ( `${ mode } NumberPadUnit` ) ;
96- await checkContinueButton ( mode , { aboveBalance : true } ) ;
96+ await checkContinueButton ( mode ) ;
9797
9898 // reset to 0
9999 await multiTap ( 'NRemove' , 8 ) ;
@@ -112,7 +112,7 @@ async function modernDenominationChecks(mode: NumberpadMode) {
112112 await tap ( 'NDecimal' ) ;
113113 await tap ( 'N1' ) ;
114114 await expectText ( '1.01' ) ;
115- await checkContinueButton ( mode , { aboveBalance : false } ) ;
115+ await checkContinueButton ( mode ) ;
116116
117117 // Switch back to BTC
118118 await tap ( `${ mode } NumberPadUnit` ) ;
@@ -157,15 +157,11 @@ async function classicDenominationChecks(mode: NumberpadMode) {
157157}
158158
159159async function checkContinueButton (
160- mode : NumberpadMode ,
161- { aboveBalance = true } : { aboveBalance ?: boolean } = { }
160+ mode : NumberpadMode
162161) {
163162 if ( mode === 'Send' ) {
164- // make sure Continue button is disabled as amount is above balance
165- if ( driver . isAndroid ) return ; // https://github.com/synonymdev/bitkit-android/issues/611
166- await elementById ( 'ContinueAmount' ) . waitForEnabled ( { reverse : aboveBalance } ) ;
163+ await elementById ( 'ContinueAmount' ) . waitForEnabled ( ) ;
167164 } else {
168- // In receive mode Continue is always enabled
169165 await elementById ( 'ReceiveNumberPadSubmit' ) . waitForEnabled ( ) ;
170166 }
171167}
0 commit comments