-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/LIVE-15628-pass-correct-id-to-dapp
- Loading branch information
Showing
20 changed files
with
304 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"live-mobile": minor | ||
--- | ||
|
||
Fix braze related performance issues |
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
74 changes: 74 additions & 0 deletions
74
apps/ledger-live-mobile/e2e/specs/speculos/nftGallery.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,74 @@ | ||
import { CLI } from "../../utils/cliUtils"; | ||
import { Application } from "../../page"; | ||
import { AppInfos } from "@ledgerhq/live-common/e2e/enum/AppInfos"; | ||
import { Currency } from "@ledgerhq/live-common/e2e/enum/Currency"; | ||
|
||
const app = new Application(); | ||
const nanoApp = AppInfos.ETHEREUM; | ||
const accountCurrency = Currency.ETH.currencyId; | ||
|
||
describe("NFT Gallery screen", () => { | ||
beforeAll(async () => { | ||
await app.init({ | ||
speculosApp: nanoApp, | ||
cliCommands: [ | ||
async () => { | ||
return CLI.liveData({ | ||
currency: nanoApp.name, | ||
index: 0, | ||
appjson: app.userdataPath, | ||
add: true, | ||
}); | ||
}, | ||
], | ||
}); | ||
await app.portfolio.waitForPortfolioPageToLoad(); | ||
await app.nftGallery.openViaDeeplink(); | ||
}); | ||
|
||
$TmsLink("B2CQA-132"); | ||
it("should navigate to/from portfolio on tab press", async () => { | ||
await app.walletTabNavigator.navigateToPortfolio(); | ||
await app.nftGallery.expectGalleryNotVisible(); | ||
await app.portfolio.expectPortfolioWithAccounts(); | ||
|
||
await app.walletTabNavigator.navigateToNftGallery(); | ||
await app.nftGallery.expectGalleryVisible(); | ||
|
||
await app.nftGallery.waitForList(); | ||
await app.nftGallery.expectNftVisible(); | ||
}); | ||
|
||
it("should navigate to NFT viewer page on NFT gallery item press", async () => { | ||
await app.nftGallery.clickOnNft(); | ||
await app.nftViewer.expectVisible(); | ||
await app.nftGallery.expectGalleryNotVisible(); | ||
|
||
await app.nftViewer.navigateToNftGallery(); | ||
await app.nftGallery.expectGalleryVisible(); | ||
}); | ||
|
||
it('should show receive NFT\'s modal when "Adding new item" from list', async () => { | ||
await app.nftGallery.tapAddNew(); | ||
await app.nftGallery.expectNftReceiveModalVisible(); | ||
|
||
await app.nftGallery.continueFromReceiveNFTsModal(); | ||
await app.receive.expectFirstStep(); | ||
await app.receive.selectCurrency(accountCurrency); | ||
await app.receive.expectSecondStepNetworks([accountCurrency]); | ||
await app.receive.selectNetwork(accountCurrency); | ||
await app.receive.expectSecoundStepAccounts(); | ||
await app.common.closePage(); | ||
}); | ||
|
||
it("should let users hide NFT's", async () => { | ||
await app.nftGallery.openViaDeeplink(); | ||
await app.nftGallery.hideAllNft(); | ||
await app.nftGallery.expectGalleryEmptyState(); | ||
|
||
// show filters on "reset" button tap | ||
await app.nftGallery.expectFilterDrawerNotVisible(); | ||
await app.nftGallery.tapResetFilters(); | ||
await app.nftGallery.expectFilterDrawerVisible(); | ||
}); | ||
}); |
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
6 changes: 2 additions & 4 deletions
6
apps/ledger-live-mobile/src/dynamicContent/brazeContentCard.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
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
Oops, something went wrong.