@@ -446,7 +446,7 @@ export async function confirmInputOnKeyboard() {
446446 }
447447}
448448
449- export async function acceptAppNotificationAlert (
449+ export async function handleAndroidAlert (
450450 button : string = 'permission_allow_button'
451451) : Promise < void > {
452452 if ( driver . isAndroid ) {
@@ -503,7 +503,7 @@ export async function completeOnboarding({ isFirstTime = true } = {}) {
503503 await waitForSetupWalletScreenFinish ( ) ;
504504
505505 if ( isFirstTime ) {
506- await acceptAppNotificationAlert ( ) ;
506+ await handleAndroidAlert ( ) ;
507507 }
508508
509509 // Wait for wallet to be created
@@ -559,7 +559,7 @@ export async function restoreWallet(
559559 await tap ( 'RestoreButton' ) ;
560560 await waitForSetupWalletScreenFinish ( ) ;
561561
562- await acceptAppNotificationAlert ( ) ;
562+ await handleAndroidAlert ( ) ;
563563
564564 // Wait for Get Started
565565 const getStarted = await elementById ( 'GetStartedButton' ) ;
@@ -672,21 +672,12 @@ export async function receiveOnchainFunds(
672672
673673 await mineBlocks ( rpc , blocksToMine ) ;
674674
675- if ( driver . isAndroid ) {
676- await dismissBackupTimedSheet ( ) ;
677- if ( expectHighBalanceWarning ) {
678- await acknowledgeHighBalanceWarning ( ) ;
679- }
680- }
681-
682675 const moneyText = await elementByIdWithin ( 'TotalBalance-primary' , 'MoneyText' ) ;
683676 await expect ( moneyText ) . toHaveText ( formattedSats ) ;
684677
685- if ( driver . isIOS ) {
686- await dismissBackupTimedSheet ( { triggerTimedSheet : true } ) ;
687- if ( expectHighBalanceWarning ) {
688- await acknowledgeHighBalanceWarning ( { triggerTimedSheet : true } ) ;
689- }
678+ await dismissBackupTimedSheet ( { triggerTimedSheet : true } ) ;
679+ if ( expectHighBalanceWarning ) {
680+ await acknowledgeHighBalanceWarning ( { triggerTimedSheet : true } ) ;
690681 }
691682}
692683
@@ -887,7 +878,7 @@ export async function enterAddress(address: string, { acceptCameraPermission = t
887878 await tap ( 'Send' ) ;
888879 await sleep ( 700 ) ;
889880 if ( acceptCameraPermission ) {
890- await acceptAppNotificationAlert ( 'permission_allow_one_time_button' ) ;
881+ await handleAndroidAlert ( 'permission_allow_one_time_button' ) ;
891882 }
892883 await tap ( 'RecipientManual' ) ;
893884 await typeAddressAndVerifyContinue ( { address } ) ;
@@ -901,7 +892,7 @@ export async function enterAddressViaScanPrompt(
901892 await tap ( 'Scan' ) ;
902893 await sleep ( 700 ) ;
903894 if ( acceptCameraPermission ) {
904- await acceptAppNotificationAlert ( 'permission_allow_foreground_only_button' ) ;
895+ await handleAndroidAlert ( 'permission_allow_foreground_only_button' ) ;
905896 }
906897 await tap ( 'ScanPrompt' ) ;
907898 await typeText ( 'QRInput' , address ) ;
0 commit comments