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

Support/delegate cosmos test #4276

Merged
merged 3 commits into from
Sep 18, 2023
Merged

Conversation

mdeidda-ledger
Copy link
Contributor

@mdeidda-ledger mdeidda-ledger commented Aug 9, 2023

πŸ“ Description

Added 2 tests scenarios:
scenario 1 : Delegate flow using max amount
scenario 2: Search and select a provider

note: scenario 1 cover that Ledger is the provider by default too.

❓ Context

Impacted projects: LLD
Linked resource(s):

1- https://ledgerhq.atlassian.net/browse/B2CQA-384
2- https://ledgerhq.atlassian.net/browse/B2CQA-1614
3- https://ledgerhq.atlassian.net/browse/B2CQA-1552
4- https://ledgerhq.atlassian.net/browse/B2CQA-1900

βœ… Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

πŸ“Έ Demo

Screen.Recording.2023-08-09.at.16.16.10.mov

πŸš€ Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

@changeset-bot
Copy link

changeset-bot bot commented Aug 9, 2023

⚠️ No Changeset found

Latest commit: be39c3f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Aug 9, 2023

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

Name Status Preview Comments Updated (UTC)
ledger-live-docs βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Aug 30, 2023 9:02am
live-common-tools βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Aug 30, 2023 9:02am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Aug 30, 2023 9:02am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 30, 2023 9:02am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 30, 2023 9:02am

@@ -23,6 +24,7 @@ export class AccountPage {
this.buyButton = page.locator("data-test-id=buy-button");
this.sellButton = page.locator("data-test-id=sell-button");
this.stakeButton = page.locator("data-test-id=stake-from-account-action-button");
this.stakeButtonCosmos = page.locator("data-test-id=stake-button");
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the data test id should be stake-button-cosmos


await test.step("start the cosmos delegate flow", async () => {
await accountPage.startCosmosStakingFlow();
await expect.soft(page).toHaveScreenshot(`earn-reward-pre-flow-page.png`);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd recommend just doing a screenshot of the actual element here, not the full page

@ggilchrist-ledger
Copy link
Contributor

Looks good! You just need to fix a merge conflict. Also were you not able to do the full flow with the devices?

Copy link
Contributor

@abdurrahman-ledger abdurrahman-ledger left a comment

Choose a reason for hiding this comment

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

Good work !
Couple changes to make:

  • You need to change your commit message to pass this check
  • There is a conflict on file apps/ledger-live-desktop/tests/models/Modal.ts

A couple comments on the test strategy :

  • for test B2CQA-1552, it doesn't check for "His equivalent is displayed in dollar"
  • we limit the testing to max amount and Ledger/Figment providers. We may want to make it expendable.

apps/ledger-live-desktop/tests/models/Modal.ts Outdated Show resolved Hide resolved
@github-actions
Copy link

There as been no activity on this PR for the last 14 days. Please consider closing this PR.

@github-actions github-actions bot added the Stale label Sep 15, 2023
@mdeidda-ledger mdeidda-ledger merged commit c135c88 into develop Sep 18, 2023
48 checks passed
@mdeidda-ledger mdeidda-ledger deleted the support/delegate-cosmos-test branch September 18, 2023 15:32
@gre
Copy link
Contributor

gre commented Sep 19, 2023

πŸ‘‹ it appears this PR was merged with a old state of passing the CI which when rebased/merged with develop seems to have a regression on the screenshot end to end tests of LLD. https://github.com/LedgerHQ/ledger-live/actions/runs/6224717521/job/16893541245

could you take a look asap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD screenshots Screenshots have been updated Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants