Skip to content

Commit bd481f0

Browse files
committed
lightning adjustments + stability
1 parent 1f38b6f commit bd481f0

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

test/helpers/lnd.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export async function getLDKNodeID(): Promise<string> {
103103
await elementById('LDKNodeID').waitForDisplayed({ timeout: 60_000 });
104104
const ldkNodeId = (await elementById('LDKNodeID').getText()).trim();
105105
console.info({ ldkNodeId });
106+
await sleep(500);
106107
await tap('NavigationBack');
107108
return ldkNodeId;
108109
}

test/specs/lightning.e2e.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ describe('@lightning - Lightning', () => {
9898

9999
// Toast message
100100
await expectText('Spending Balance Ready');
101+
await expectText('Spending Balance Ready', { visible: false });
101102

102103
// check channel status
103104
await checkChannelStatus();
@@ -117,6 +118,7 @@ describe('@lightning - Lightning', () => {
117118

118119
// send funds to LDK, 111 sats invoice
119120
await tap('Receive');
121+
await sleep(1000);
120122
await tap('SpecifyInvoiceButton');
121123
await tap('ReceiveNumberPadTextField');
122124
await sleep(100);
@@ -270,12 +272,12 @@ describe('@lightning - Lightning', () => {
270272
// close channel
271273
await tap('CloseConnection');
272274
await tap('CloseConnectionButton');
275+
await acknowledgeReceivedPayment();
273276
await elementByText('Transfer Initiated').waitForDisplayed();
274277
await elementByText('Transfer Initiated').waitForDisplayed({ reverse: true });
275278

276279
await mineBlocks(rpc, 6);
277280
await electrum?.waitForSync();
278-
await acknowledgeReceivedPayment();
279281
await elementById('Channel').waitForDisplayed({ reverse: true });
280282
await tap('NavigationBack');
281283
await doNavigationClose();

test/specs/numberpad.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('@numberpad - NumberPad', () => {
2424
describe('Modern denomination', () => {
2525
ciIt('@numberpad_1 - Receive: Can enter amounts in modern denomination', async () => {
2626
await tap('Receive');
27+
await sleep(700);
2728
await tap('SpecifyInvoiceButton');
2829
await tap('ReceiveNumberPadTextField');
2930
await sleep(700);
@@ -45,6 +46,7 @@ describe('@numberpad - NumberPad', () => {
4546

4647
ciIt('@numberpad_3 - Receive: Can enter amounts in classic denomination', async () => {
4748
await tap('Receive');
49+
await sleep(700);
4850
await tap('SpecifyInvoiceButton');
4951
await tap('ReceiveNumberPadTextField');
5052
await sleep(700);

test/specs/settings.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ describe('@settings - Settings', () => {
154154
// open receive tags, add a tag
155155
const tag = 'test123';
156156
await tap('Receive');
157+
await sleep(700);
157158
await tap('SpecifyInvoiceButton');
158159
(await elementByText(tag)).waitForDisplayed({ reverse: true });
159160

@@ -177,6 +178,7 @@ describe('@settings - Settings', () => {
177178

178179
// open receive tags, check tags are gone
179180
await tap('Receive');
181+
await sleep(700);
180182
await tap('SpecifyInvoiceButton');
181183
(await elementByText(tag)).waitForDisplayed({ reverse: true });
182184
await tap('TagsAdd');

0 commit comments

Comments
 (0)