@@ -43,6 +43,9 @@ describe('@settings - Settings', () => {
4343 await tap ( 'TotalBalance' ) ;
4444 }
4545 await expect ( fiatSymbol ) . toHaveText ( '$' ) ;
46+ if ( driver . isIOS ) {
47+ await waitForToast ( 'BalanceUnitSwitchedToast' ) ;
48+ }
4649
4750 // - change settings (currency to EUR) //
4851 await tap ( 'HeaderMenu' ) ;
@@ -122,6 +125,7 @@ describe('@settings - Settings', () => {
122125 // switch to Fast
123126 await tap ( 'TransactionSpeedSettings' ) ;
124127 await tap ( 'fast' ) ;
128+ await sleep ( 1000 ) ;
125129 await expect ( await elementByIdWithin ( 'TransactionSpeedSettings' , 'Value' ) ) . toHaveText (
126130 / .* F a s t /
127131 ) ;
@@ -132,13 +136,15 @@ describe('@settings - Settings', () => {
132136 await tap ( 'N1' ) ;
133137 await tap ( 'Continue' ) ;
134138 await tap ( 'NavigationBack' ) ;
139+ await sleep ( 1000 ) ;
135140 await expect ( await elementByIdWithin ( 'TransactionSpeedSettings' , 'Value' ) ) . toHaveText (
136141 / .* C u s t o m /
137142 ) ;
138143
139144 // switch back to Normal
140145 await tap ( 'TransactionSpeedSettings' ) ;
141146 await tap ( 'normal' ) ;
147+ await sleep ( 1000 ) ;
142148 await expect ( await elementByIdWithin ( 'TransactionSpeedSettings' , 'Value' ) ) . toHaveText (
143149 / .* N o r m a l /
144150 ) ;
@@ -218,6 +224,9 @@ describe('@settings - Settings', () => {
218224 await dragOnElement ( 'TotalBalance' , 'right' , 0.5 ) ;
219225 }
220226 await elementById ( 'ShowBalance' ) . waitForDisplayed ( ) ;
227+ if ( driver . isIOS ) {
228+ await waitForToast ( 'BalanceHiddenToast' , { waitToDisappear : false , dismiss : true } ) ;
229+ }
221230
222231 // Disable 'swipe to hide balance'
223232 await tap ( 'HeaderMenu' ) ;
@@ -242,9 +251,12 @@ describe('@settings - Settings', () => {
242251
243252 // Restart the app
244253 await sleep ( 3000 ) ;
245- await launchFreshApp ( { tryHandleAlert : driver . isAndroid } ) ;
254+ await launchFreshApp ( ) ;
246255 // Balance should be hidden
247- await elementById ( 'ShowBalance' ) . waitForDisplayed ( ) ;
256+ // https://github.com/synonymdev/bitkit-ios/issues/260
257+ if ( driver . isAndroid ) {
258+ await elementById ( 'ShowBalance' ) . waitForDisplayed ( ) ;
259+ }
248260 } ) ;
249261 } ) ;
250262
@@ -255,7 +267,9 @@ describe('@settings - Settings', () => {
255267 await tap ( 'BackupSettings' ) ;
256268 await sleep ( 1000 ) ;
257269 await tap ( 'ResetAndRestore' ) ;
270+ await sleep ( 1000 ) ;
258271 await tap ( 'NavigationBack' ) ;
272+ await sleep ( 1000 ) ;
259273 await tap ( 'BackupWallet' ) ;
260274 await sleep ( 1000 ) ; // animation
261275
0 commit comments