Skip to content

Commit ac1721a

Browse files
authored
Merge pull request #79 from synonymdev/fix/send-amount-routing-fee
adjust send_2 after fix
2 parents 043ee64 + 7a936eb commit ac1721a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/specs/numberpad.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async function classicDenominationChecks(mode: NumberpadMode) {
114114

115115
// reset to 0
116116
await multiTap('NRemove', 2);
117-
if (mode === 'Send') {
117+
if (mode === 'Send') {
118118
await expectTextWithin('SendNumberField', '0.00000000');
119119
} else {
120120
await expectTextWithin('ReceiveNumberPadTextField', '0.00000000');

test/specs/send.e2e.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,10 @@ describe('@send - Send', () => {
370370
// max amount (lightning)
371371
// Android shows raw `maxSendLightningSats` (7k - 1k reserve = 6k).
372372
// iOS subtracts an estimated routing fee which includes a hardcoded 2 sat buffer (see SendAmountView.calculateRoutingFee()).
373-
await expectText(driver.isIOS ? '5 998' : '6 000', { strategy: 'contains' });
373+
await expectText('5 998', { strategy: 'contains' });
374374
await tap('AssetButton-switch');
375375
// max amount (onchain)
376-
await expectText(driver.isIOS ? '5 998' : '6 000', { visible: false, strategy: 'contains' });
376+
await expectText('5 998', { visible: false, strategy: 'contains' });
377377
await tap('AssetButton-switch');
378378
await tap('N1');
379379
await multiTap('N0', 3);
@@ -398,7 +398,7 @@ describe('@send - Send', () => {
398398
// max amount (lightning)
399399
await tap('AvailableAmount');
400400
await tap('ContinueAmount');
401-
await expectText(driver.isIOS ? '4 998' : '5 000', { strategy: 'contains' });
401+
await expectText('4 998', { strategy: 'contains' });
402402
// expect toast about reserve balance
403403
await expectText('Reserve Balance');
404404
await tap('NavigationBack');
@@ -412,7 +412,7 @@ describe('@send - Send', () => {
412412
await tap('NRemove');
413413
}
414414
await tap('ContinueAmount');
415-
await expectText(driver.isIOS ? '4 998' : '5 000', { visible: false, strategy: 'contains' });
415+
await expectText('4 998', { visible: false, strategy: 'contains' });
416416
await tap('NavigationBack');
417417
await multiTap('NRemove', 6);
418418
await tap('N1');

0 commit comments

Comments
 (0)