Skip to content

Commit

Permalink
E2E Add credit card by test Id
Browse files Browse the repository at this point in the history
  • Loading branch information
Vangaorth committed Jan 23, 2024
1 parent 7942bc9 commit d77cc59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ts/components/wallet/WalletHomeHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const useWalletHomeHeaderBottomSheet = (): IOBottomSheetModal => {
const navigationListItems: ReadonlyArray<NavigationListItem> = [
{
title: I18n.t("wallet.paymentMethod"),
testId: "wallet.paymentMethod",
subtitle: I18n.t("wallet.paymentMethodDesc"),
onPress: () =>
navigateToWalletAddPaymentMethod({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ describe("Credit Card onboarding", () => {
// Button "+ Add"
await element(by.id("walletAddNewPaymentMethodTestId")).tap();

await waitFor(element(by.text(I18n.t("wallet.paymentMethod"))))
await waitFor(element(by.id("wallet.paymentMethod")))
.toBeVisible()
.withTimeout(e2eWaitRenderTimeout);

// Add payment method listItem in bottomSheet
await element(by.text(I18n.t("wallet.paymentMethod"))).tap();
await element(by.id("wallet.paymentMethod")).tap();

await waitFor(element(by.text(I18n.t("wallet.methods.card.name"))))
.toBeVisible()
Expand Down

0 comments on commit d77cc59

Please sign in to comment.