Skip to content

Commit d3f5986

Browse files
committed
acceptAppNotificationAlert -> handleAndroidAlert
1 parent e2b7271 commit d3f5986

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

test/helpers/actions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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');
@@ -878,7 +878,7 @@ export async function enterAddress(address: string, { acceptCameraPermission = t
878878
await tap('Send');
879879
await sleep(700);
880880
if (acceptCameraPermission) {
881-
await acceptAppNotificationAlert('permission_allow_one_time_button');
881+
await handleAndroidAlert('permission_allow_one_time_button');
882882
}
883883
await tap('RecipientManual');
884884
await typeAddressAndVerifyContinue({ address });
@@ -892,7 +892,7 @@ export async function enterAddressViaScanPrompt(
892892
await tap('Scan');
893893
await sleep(700);
894894
if (acceptCameraPermission) {
895-
await acceptAppNotificationAlert('permission_allow_foreground_only_button');
895+
await handleAndroidAlert('permission_allow_foreground_only_button');
896896
}
897897
await tap('ScanPrompt');
898898
await typeText('QRInput', address);

test/specs/lightning.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ describe('@lightning - Lightning', () => {
116116
await dismissBackgroundPaymentsTimedSheet({ triggerTimedSheet: driver.isIOS });
117117
await dismissQuickPayIntro({ triggerTimedSheet: driver.isIOS });
118118
} else {
119-
await dismissQuickPayIntro();
119+
await dismissQuickPayIntro({ triggerTimedSheet: true });
120120
}
121121
const totalBalance = await elementByIdWithin('TotalBalance-primary', 'MoneyText');
122122
await expect(totalBalance).toHaveText('11 000'); // 1k onchain + 10k lightning

test/specs/onboarding.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
acceptAppNotificationAlert,
2+
handleAndroidAlert,
33
confirmInputOnKeyboard,
44
elementById,
55
elementByText,
@@ -49,7 +49,7 @@ describe('@onboarding - Onboarding', () => {
4949
await tap('NewWallet');
5050
await waitForSetupWalletScreenFinish();
5151

52-
await acceptAppNotificationAlert();
52+
await handleAndroidAlert();
5353

5454
await elementByText('TO GET').waitForDisplayed();
5555
});
@@ -82,7 +82,7 @@ describe('@onboarding - Onboarding', () => {
8282
await tap('CreateNewWallet');
8383
await waitForSetupWalletScreenFinish();
8484

85-
await acceptAppNotificationAlert();
85+
await handleAndroidAlert();
8686

8787
// Wait for wallet to be created
8888
for (let i = 1; i <= 3; i++) {

test/specs/send.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
dismissQuickPayIntro,
2222
doNavigationClose,
2323
waitForToast,
24-
acceptAppNotificationAlert,
24+
handleAndroidAlert,
2525
dismissBackgroundPaymentsTimedSheet,
2626
acknowledgeReceivedPayment,
2727
} from '../helpers/actions';
@@ -67,7 +67,7 @@ describe('@send - Send', () => {
6767

6868
ciIt('@send_1 - Validates payment data in the manual input', async () => {
6969
await tap('Send');
70-
await acceptAppNotificationAlert('permission_allow_foreground_only_button');
70+
await handleAndroidAlert('permission_allow_foreground_only_button');
7171
await tap('RecipientManual');
7272

7373
// check validation for empty address

test/specs/settings.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
dragOnElement,
1111
elementsById,
1212
getReceiveAddress,
13-
acceptAppNotificationAlert,
13+
handleAndroidAlert,
1414
confirmInputOnKeyboard,
1515
multiTap,
1616
getAccessibleText,
@@ -437,7 +437,7 @@ describe('@settings - Settings', () => {
437437
await tap('NavigationAction');
438438
// on the first time we need to accept the notifications permission dialog to use camera
439439
if (i === 0) {
440-
await acceptAppNotificationAlert('permission_allow_foreground_only_button');
440+
await handleAndroidAlert('permission_allow_foreground_only_button');
441441
}
442442
await tap('ScanPrompt');
443443
await typeText('QRInput', conn.url);

0 commit comments

Comments
 (0)