Skip to content

Commit cfed272

Browse files
committed
use boost toast ids
1 parent b38f083 commit cfed272

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test/helpers/actions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ export async function acceptAppNotificationAlert(
435435
export async function doNavigationClose() {
436436
await tap('HeaderMenu');
437437
await tap('DrawerWallet');
438+
await sleep(500);
438439
}
439440

440441
export async function getSeed(): Promise<string> {
@@ -671,6 +672,8 @@ export async function receiveOnchainFunds(
671672
}
672673

673674
export type ToastId =
675+
| 'BoostSuccessToast'
676+
| 'BoostFailureToast'
674677
| 'LnurlPayAmountTooLowToast'
675678
| 'SpendingBalanceReadyToast'
676679
| 'BalanceUnitSwitchedToast'

test/specs/boost.e2e.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
waitForBackup,
1919
restoreWallet,
2020
enterAddress,
21+
waitForToast,
2122
} from '../helpers/actions';
2223
import { bitcoinURL } from '../helpers/constants';
2324
import initElectrum from '../helpers/electrum';
@@ -74,6 +75,7 @@ describe('@boost - Boost', () => {
7475
await tap('Minus');
7576
await tap('RecommendedFeeButton');
7677
await dragOnElement('GRAB', 'right', 0.95); // Swipe to confirm
78+
await waitForToast('BoostSuccessToast');
7779

7880
// check Activity
7981
await elementById('BoostingIcon').waitForDisplayed();
@@ -189,7 +191,8 @@ describe('@boost - Boost', () => {
189191
await tap('Minus');
190192
await tap('RecommendedFeeButton');
191193
await dragOnElement('GRAB', 'right', 0.95); // Swipe to confirm
192-
194+
await waitForToast('BoostSuccessToast');
195+
193196
// check Activity
194197
await elementById('BoostingIcon').waitForDisplayed();
195198
await elementById('ActivityShort-0').waitForDisplayed();

0 commit comments

Comments
 (0)