Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Chris Campbell <chris@launchbadge.com>
- Loading branch information
1 parent
916c03b
commit ce3760a
Showing
8 changed files
with
100 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
describe("Tool: Associate Token", () => { | ||
const { | ||
KEY_PRIVATE_KEY, | ||
KEY_ACCOUNT_ID | ||
} = Cypress.env(); | ||
|
||
beforeEach(() => { | ||
cy.viewport("macbook-13"); | ||
|
||
// Login with Testnet credentials | ||
cy.visit("/"); | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
cy.login(KEY_PRIVATE_KEY, KEY_ACCOUNT_ID); | ||
|
||
// Navigate from Home to Tool: Associate Token | ||
cy | ||
.get("[data-cy-tools]") | ||
.filter(":visible") | ||
.click() | ||
.get("[data-cy-tool-associate]") | ||
.filter(":visible") | ||
.click(); | ||
}); | ||
|
||
it("can associate a token", () => { | ||
cy.log("TODO: Create and associate a token"); | ||
}); | ||
|
||
it("can identify an already associated token", () => { | ||
cy.log("TODO: Try to associate an already associated token"); | ||
}); | ||
|
||
it("can identify a token that requires KYC", () => { | ||
cy.log("TODO: Try to associate a token that requires KYC"); | ||
}) | ||
}); | ||
|
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,7 +1,22 @@ | ||
/// <reference types="cypress"/> | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-namespace | ||
declare namespace Cypress { | ||
interface Chainable { | ||
login(): void; | ||
vue(): void; | ||
} | ||
} | ||
|
||
Cypress.Commands.add("vue", () => { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
return cy.wrap(Cypress.vueWrapper); | ||
}) | ||
}); | ||
|
||
Cypress.Commands.add("login", (privateKey: string, accountId: string) => { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
cy.window().its("$store").invoke("login", privateKey, accountId); | ||
cy.window().its("$router").invoke("push", { name: "home" }); | ||
}); |
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