-
Notifications
You must be signed in to change notification settings - Fork 326
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 #7544 from LedgerHQ/test/qaa-102-portfolio
[QAA-102] [LLD] Cover portfolio test cases
- Loading branch information
Showing
4 changed files
with
77 additions
and
7 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
25 changes: 25 additions & 0 deletions
25
apps/ledger-live-desktop/tests/specs/speculos/portfolio.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,25 @@ | ||
import { test } from "../../fixtures/common"; | ||
|
||
test.describe("Portfolio", () => { | ||
test.use({ | ||
userdata: "speculos-tests-app", | ||
}); | ||
test( | ||
"Charts are displayed when user added his accounts", | ||
{ | ||
annotation: { | ||
type: "TMS", | ||
description: "B2CQA-927, B2CQA-928", | ||
}, | ||
}, | ||
async ({ app }) => { | ||
await app.layout.goToPortfolio(); | ||
await app.portfolio.checkBuySellButtonVisibility(); | ||
await app.portfolio.checkStakeButtonVisibility(); | ||
await app.portfolio.checkSwapButtonVisibility(); | ||
await app.portfolio.checkChartVisibility(); | ||
await app.portfolio.checkMarketPerformanceTrendVisibility(); | ||
await app.portfolio.checkAssetAllocationSection(); | ||
}, | ||
); | ||
}); |
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