Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QAA] Adding new currencies for e2e send testing #8263

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

VicAlbr
Copy link
Contributor

@VicAlbr VicAlbr commented Oct 31, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Adding 10 new currencies for e2e send testing:

  • Polygon
  • Bitcoin cash
  • Polkadot
  • Algorand
  • Solana
  • Tron
  • Stellar
  • Cosmos
  • Cardano
  • Ripple

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Copy link

vercel bot commented Oct 31, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 3:21pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 3:21pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 3:21pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 3:21pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 3:21pm

@live-github-bot live-github-bot bot added the desktop Has changes in LLD label Oct 31, 2024
@VicAlbr VicAlbr marked this pull request as ready for review October 31, 2024 12:40
@VicAlbr VicAlbr requested review from a team as code owners October 31, 2024 12:40
case Currency.BTC:
deviceLabel = DeviceLabels.CONTINUE;
break;
case Currency.DOGE:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like this case isn't needed

tx.accountToDebit.currency == Currency.sepETH &&
tx.accountToDebit.currency == Currency.POL &&
tx.accountToDebit.currency == Currency.DOGE &&
tx.accountToDebit.currency == Currency.BCH
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure to understand that condition, you expect currency to be sepETH AND to be POL AND to be DOGE AND to be BCH, correct?
shouldn't it be || ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on top of what @bharamboure-ledger says having so many conditions in the "if" seems a bit dirty to be honest

break;
case Currency.BTC:
case Currency.DOGE:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this in use ? there's no instruction in case

await pressUntilTextFound(DeviceLabels.ACCEPT);
await pressBoth();
}

@step("Sign Send Transaction")
async signSendTransaction(tx: Transaction) {
const currencyName = tx.accountToDebit.currency;
switch (currencyName) {
case Currency.sepETH:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this in use ? there's no instruction in case

{
transaction: new Transaction(Account.DOGE_1, Account.DOGE_2, "0.01", Fee.SLOW),
xrayTicket: "B2CQA-2573",
},
{
transaction: new Transaction(Account.BCH_1, Account.BCH_2, "0.0001", Fee.SLOW),
xrayTicket: "2808",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are missing "B2CQA" part of the ticket here and in all lines down below

@@ -358,7 +358,7 @@ export async function pressBoth() {

export async function pressUntilTextFound(
targetText: string,
maxAttempts: number = 10,
maxAttempts: number = 15,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this number increased?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants