forked from argentlabs/argent-x
-
Notifications
You must be signed in to change notification settings - Fork 0
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 argentlabs#1997 from argentlabs/release/v5.3.17
Merge Release v5.3.17 into main
- Loading branch information
Showing
34 changed files
with
383 additions
and
284 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
{ | ||
"packages": ["packages/*"], | ||
"version": "5.3.16", | ||
"version": "5.3.17", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true | ||
} |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import { expect } from "@playwright/test" | ||
|
||
import config from "../config" | ||
import test from "../test" | ||
|
||
test.describe("Banner", () => { | ||
test("dapps banner should be visible after login", async ({ extension }) => { | ||
await extension.wallet.newWalletOnboarding() | ||
await extension.open() | ||
await expect(extension.network.networkSelector).toBeVisible() | ||
await extension.account.setUpAccountRecovery.click() | ||
await extension.account.saveTheRecoveryPhrase.click() | ||
await extension.navigation.continue.click() | ||
await extension.navigation.yes.click() | ||
await expect(extension.account.setUpAccountRecovery).toBeHidden() | ||
await expect(extension.account.dappsBanner).toBeVisible() | ||
let href = await extension.account.dappsBanner.getAttribute("href") | ||
expect(href).toContain("https://www.dappland.com") | ||
//check settings banner | ||
await extension.navigation.showSettings.click() | ||
href = await extension.account.dappsBanner.getAttribute("href") | ||
expect(href).toContain("https://www.dappland.com") | ||
}) | ||
|
||
test("dapps banner should not be visible after dismissed", async ({ | ||
extension, | ||
}) => { | ||
await extension.wallet.newWalletOnboarding() | ||
await extension.open() | ||
await expect(extension.network.networkSelector).toBeVisible() | ||
await extension.account.setUpAccountRecovery.click() | ||
await extension.account.saveTheRecoveryPhrase.click() | ||
await extension.navigation.continue.click() | ||
await extension.navigation.yes.click() | ||
await expect(extension.account.setUpAccountRecovery).toBeHidden() | ||
await expect(extension.account.dappsBanner).toBeVisible() | ||
await extension.account.dappsBannerClose.click() | ||
await expect(extension.account.dappsBanner).toBeHidden() | ||
}) | ||
|
||
test("dapps banner shoud be visible after account recovery", async ({ | ||
extension, | ||
}) => { | ||
await extension.open() | ||
await extension.wallet.restoreExistingWallet.click() | ||
await extension.setClipBoardContent(config.wallets[1].seed) | ||
await extension.paste() | ||
await extension.navigation.continue.click() | ||
|
||
await extension.wallet.password.fill(config.password) | ||
await extension.wallet.repeatPassword.fill(config.password) | ||
|
||
await extension.navigation.continue.click() | ||
|
||
await expect(extension.wallet.finish.first()).toBeVisible({ | ||
timeout: 180000, | ||
}) | ||
|
||
await extension.open() | ||
await expect(extension.network.networkSelector).toBeVisible() | ||
await expect(extension.account.dappsBanner).toBeVisible() | ||
}) | ||
}) |
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.