-
Notifications
You must be signed in to change notification settings - Fork 8
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 #603 from Augmint/staging
Release v1.1.0 to production
- Loading branch information
Showing
69 changed files
with
3,564 additions
and
2,566 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ package-lock.json | |
|
||
build | ||
.DS_Store | ||
.idea/ | ||
|
||
# Logs | ||
logs | ||
|
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,44 @@ | ||
describe("Augmint funding", function() { | ||
beforeEach(function() { | ||
cy.getUserAEurBalance().as("startingAeurBalance"); | ||
cy.getUserEthBalance().as("startingEthBalance"); | ||
}); | ||
|
||
const getAddFundsTab = () => { | ||
cy.get("[data-testid=fundingMenuLink]").click(); | ||
cy.get("[data-testid=addFundsTab]").click(); | ||
}; | ||
|
||
const getWithdrawTab = () => { | ||
cy.get("[data-testid=fundingMenuLink]").click(); | ||
cy.get("[data-testid=withdrawTab]").click(); | ||
}; | ||
|
||
it("Should show fund input label when add funds selected", function() { | ||
getAddFundsTab(); | ||
|
||
cy.get("[data-testid=addFundsLabel]").should("contain", "Send from bank account"); | ||
}); | ||
|
||
it("Should go to buy link when add funds selected", function() { | ||
getAddFundsTab(); | ||
|
||
cy.get("[data-testid=addFundsLink]") | ||
.should("have.attr", "href") | ||
.and("include", "buy"); | ||
}); | ||
|
||
it("Should show withdraw input label when withdraw selected", function() { | ||
getWithdrawTab(); | ||
|
||
cy.get("[data-testid=withdrawLabel]").should("contain", "Send to bank account"); | ||
}); | ||
|
||
it("Should go to sell link when withdraw selected", function() { | ||
getWithdrawTab(); | ||
|
||
cy.get("[data-testid=withdrawLink]") | ||
.should("have.attr", "href") | ||
.and("include", "sell"); | ||
}); | ||
}); |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.