Skip to content

Commit 40774e5

Browse files
committed
remove PaymentConfirmedToast and TransactionConfirmedToast
1 parent ef76da4 commit 40774e5

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

test/helpers/actions.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,9 @@ export async function receiveOnchainFunds(
655655
await acknowledgeReceivedPayment();
656656

657657
await mineBlocks(rpc, blocksToMine);
658-
if (blocksToMine > 0) {
659-
await waitForToast('PaymentConfirmedToast');
660-
}
658+
// if (blocksToMine > 0) {
659+
// await waitForToast('PaymentConfirmedToast');
660+
// }
661661

662662
if (driver.isAndroid) {
663663
await dismissBackupTimedSheet();
@@ -678,14 +678,13 @@ export async function receiveOnchainFunds(
678678
}
679679

680680
type ToastId =
681-
| 'PaymentConfirmedToast'
681+
| 'PaymentConfirmedToast' // removed
682+
| 'TransactionConfirmedToast' //removed
682683
| 'PaymentFailedToast'
683-
| 'TransactionConfirmedToast'
684684
| 'ReceivedTransactionReplacedToast'
685685
| 'TransactionReplacedToast'
686686
| 'TransactionUnconfirmedToast'
687687
| 'TransactionRemovedToast';
688-
689688
export async function waitForToast(toastId: ToastId) {
690689
await elementById(toastId).waitForDisplayed();
691690
}

test/specs/boost.e2e.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ import {
1515
elementByIdWithin,
1616
getTextUnder,
1717
mineBlocks,
18-
attemptRefreshOnHomeScreen,
1918
doNavigationClose,
2019
getSeed,
2120
waitForBackup,
2221
restoreWallet,
23-
waitForToast,
2422
} from '../helpers/actions';
2523
import { bitcoinURL } from '../helpers/constants';
2624
import initElectrum from '../helpers/electrum';
@@ -144,7 +142,6 @@ describe('@boost - Boost', () => {
144142

145143
// mine new block
146144
await mineBlocks(rpc, 1);
147-
await waitForToast('TransactionConfirmedToast');
148145
await doNavigationClose();
149146
await sleep(500);
150147

@@ -269,7 +266,6 @@ describe('@boost - Boost', () => {
269266

270267
// mine new block
271268
await mineBlocks(rpc, 1);
272-
await waitForToast('TransactionConfirmedToast');
273269
await doNavigationClose();
274270
await sleep(500);
275271

0 commit comments

Comments
 (0)