-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
13,392 additions
and
9,730 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 |
---|---|---|
|
@@ -35,5 +35,9 @@ yarn-error.log* | |
.vercel | ||
|
||
# cypress | ||
cypress/downloads | ||
cypress/screenshots | ||
cypress/videos | ||
|
||
# yarn | ||
.yarn |
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,55 @@ | ||
describe('Liquidity', () => { | ||
|
||
it('stake: type a deposit amount', () => { | ||
cy.visit('/liquidity') | ||
|
||
// Expect default value to be '0' | ||
cy.get('#depositValue') | ||
.invoke('val') | ||
.then(val => { | ||
expect(val).to.equal('0') | ||
}) | ||
|
||
// Clear the default '0' value before typing a number | ||
cy.get('#depositValue').clear() | ||
|
||
// Type a number | ||
cy.get('#depositValue').type('3.3333') | ||
|
||
// Expect the value to no longer be '0' | ||
cy.get('#depositValue') | ||
.invoke('val') | ||
.then(val => { | ||
expect(val).to.equal('3.3333') | ||
}) | ||
}) | ||
|
||
it('unstake: type a withdrawal amount', () => { | ||
cy.visit('/liquidity') | ||
|
||
// Click the "Unstake" tab | ||
cy.get("#unstakeTab").click() | ||
|
||
// Expect default value to be '0' | ||
cy.get('#withdrawalValue') | ||
.invoke('val') | ||
.then(val => { | ||
expect(val).to.equal('0') | ||
}) | ||
|
||
// Clear the default '0' value before typing a number | ||
cy.get('#withdrawalValue').clear() | ||
|
||
// Type a number | ||
cy.get('#withdrawalValue').type('0.3333') | ||
|
||
// Expect the value to no longer be '0' | ||
cy.get('#withdrawalValue') | ||
.invoke('val') | ||
.then(val => { | ||
expect(val).to.equal('0.3333') | ||
}) | ||
}) | ||
}) | ||
|
||
export {} |
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.