-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3998 from LedgerHQ/support/B2CQA-1753_automate_re…
…adOnly [B2CQA-1753] LLM portfolio read only test
- Loading branch information
Showing
23 changed files
with
201 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { getElementById, tapByElement, waitForElementByID } from "../../helpers"; | ||
import { getElementById, tapByElement, waitForElementById } from "../../helpers"; | ||
|
||
export default class SettingsPage { | ||
generalSettingsButton = () => getElementById("general-settings-card"); | ||
|
||
async navigateToGeneralSettings() { | ||
await waitForElementByID("general-settings-card"); | ||
await waitForElementById("general-settings-card"); | ||
await tapByElement(this.generalSettingsButton()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
apps/ledger-live-mobile/e2e/specs/onboardingReadOnly.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { expect } from "detox"; | ||
import OnboardingSteps from "../models/onboarding/onboardingSteps"; | ||
import PortfolioPage from "../models/wallet/portfolioPage"; | ||
|
||
let onboardingSteps: OnboardingSteps; | ||
let portfolioPage: PortfolioPage; | ||
|
||
describe("Onboarding - Read Only", () => { | ||
beforeAll(() => { | ||
onboardingSteps = new OnboardingSteps(); | ||
portfolioPage = new PortfolioPage(); | ||
}); | ||
|
||
it("starts Onboarding", async () => { | ||
await onboardingSteps.startOnboarding(); | ||
}); | ||
|
||
it("selects I don't have a Ledger Yet", async () => { | ||
await onboardingSteps.chooseNoLedgerYet(); | ||
}); | ||
|
||
it("chooses to explore the app goes through dicover carousel", async () => { | ||
await onboardingSteps.chooseToExploreApp(); | ||
}); | ||
|
||
it("opens Ledger Live", async () => { | ||
await portfolioPage.waitForPortfolioPageToLoad(); | ||
await expect(portfolioPage.portfolioSettingsButton()).toBeVisible(); | ||
}); | ||
|
||
it("should see an empty portfolio page", async () => { | ||
await portfolioPage.waitForPortfolioReadOnly(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
4f327d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
live-common-tools – ./
live-common-tools-git-develop-ledgerhq.vercel.app
live.ledger.tools
ledger-live-tools.vercel.app
ledger-live.vercel.app
live-common-tools-ledgerhq.vercel.app