Skip to content

Commit 4c4acf8

Browse files
committed
waitForBackup in lightning
1 parent 3bfcbf4 commit 4c4acf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/specs/lightning.e2e.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
dismissQuickPayIntro,
2525
doNavigationClose,
2626
acknowledgeReceivedPayment,
27+
waitForBackup,
2728
} from '../helpers/actions';
2829
import { reinstallApp } from '../helpers/setup';
2930
import { bitcoinURL, lndConfig } from '../helpers/constants';
@@ -238,8 +239,7 @@ describe('@lightning - Lightning', () => {
238239

239240
// wipe and restore wallet
240241
const seed = await getSeed();
241-
// await waitForBackup();
242-
await sleep(10_000); //temp wait (until we have a proper event for backup completion)
242+
await waitForBackup();
243243
await restoreWallet(seed);
244244

245245
// check balance
@@ -264,6 +264,7 @@ describe('@lightning - Lightning', () => {
264264
await tap('DrawerSettings');
265265
await tap('AdvancedSettings');
266266
await tap('Channels');
267+
await sleep(500);
267268
await tap('Channel');
268269
await expectTextWithin('TotalSize', '₿ 100 000');
269270
await swipeFullScreen('up');

0 commit comments

Comments
 (0)