File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 77 sleep ,
88 tap ,
99 doNavigationClose ,
10+ expectTextWithin ,
1011} from '../helpers/actions' ;
1112import { launchFreshApp , reinstallApp } from '../helpers/setup' ;
1213import { ciIt } from '../helpers/suite' ;
@@ -78,8 +79,11 @@ async function modernDenominationChecks(mode: NumberpadMode) {
7879 await tap ( `${ mode } NumberPadUnit` ) ;
7980 // reset to 0
8081 await multiTap ( 'NRemove' , 8 ) ;
81- await expectText ( '0.00' ) ;
82-
82+ if ( mode === 'Send' ) {
83+ await expectTextWithin ( 'SendNumberField' , '0.00' ) ;
84+ } else {
85+ await expectTextWithin ( 'ReceiveNumberPadTextField' , '0.00' ) ;
86+ }
8387 await tap ( 'N0' ) ;
8488 await tap ( 'N0' ) ;
8589 await tap ( 'N1' ) ;
@@ -110,7 +114,11 @@ async function classicDenominationChecks(mode: NumberpadMode) {
110114
111115 // reset to 0
112116 await multiTap ( 'NRemove' , 2 ) ;
113- await expectText ( '0.00000000' ) ;
117+ if ( mode === 'Send' ) {
118+ await expectTextWithin ( 'SendNumberField' , '0.00000000' ) ;
119+ } else {
120+ await expectTextWithin ( 'ReceiveNumberPadTextField' , '0.00000000' ) ;
121+ }
114122 await tap ( 'N4' ) ;
115123 await tap ( 'NDecimal' ) ;
116124 await tap ( 'N2' ) ;
You can’t perform that action at this time.
0 commit comments