Skip to content

Commit 303e8bc

Browse files
committed
Update
1 parent e6973f6 commit 303e8bc

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

app/components/Views/confirmations/components/edit-amount-keyboard/edit-amount-keyboard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export function EditAmountKeyboard({
7171
{additionalButtons.map(({ value: val, label }) => (
7272
<Button
7373
key={`${val}-${label}`}
74+
testID={`percentage-button-${val}`}
7475
label={label}
7576
style={styles.percentageButton}
7677
onPress={() => onPercentagePress(val)}

e2e/pages/Send/RedesignedSendView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class SendView {
2222
}
2323

2424
get fiftyPercentButton(): DetoxElement {
25-
return Matchers.getElementByText('50%');
25+
return Matchers.getElementByID('percentage-button-50');
2626
}
2727

2828
get maxButton(): DetoxElement {
29-
return Matchers.getElementByText('Max');
29+
return Matchers.getElementByID('percentage-button-100');
3030
}
3131

3232
get continueButton(): DetoxElement {

e2e/specs/send/send-native-token.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ describe(SmokeConfirmationsRedesigned('Send native asset'), () => {
5959
await Assertions.expectTextDisplayed('Confirmed');
6060

6161
// send 50% ETH
62-
// await TabBarComponent.tapWallet();
63-
// await WalletView.tapWalletSendButton();
64-
// await SendView.selectEthereumToken();
65-
// await SendView.pressFiftyPercentButton();
66-
// await SendView.pressContinueButton();
67-
// await SendView.inputRecipientAddress(RECIPIENT);
68-
// await SendView.pressReviewButton();
69-
// await FooterActions.tapConfirmButton();
70-
// await TabBarComponent.tapActivity();
71-
// await Assertions.expectTextDisplayed('Confirmed');
62+
await TabBarComponent.tapWallet();
63+
await WalletView.tapWalletSendButton();
64+
await SendView.selectEthereumToken();
65+
await SendView.pressFiftyPercentButton();
66+
await SendView.pressContinueButton();
67+
await SendView.inputRecipientAddress(RECIPIENT);
68+
await SendView.pressReviewButton();
69+
await FooterActions.tapConfirmButton();
70+
await TabBarComponent.tapActivity();
71+
await Assertions.expectTextDisplayed('Confirmed');
7272

7373
// send Max ETH
7474
await TabBarComponent.tapWallet();

0 commit comments

Comments
 (0)