Skip to content

Commit

Permalink
Forcing all inputs in an attempt to fix cypress occasional failures
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Jun 20, 2022
1 parent eea810b commit b69dab7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress-custom/integration/swapMod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ describe('Swap (mod)', () => {

it('can enter an amount into input', () => {
cy.get('#swap-currency-input .token-amount-input')
.clear()
.type('0.001', { delay: 400, force: true })
.type('{selectall}{backspace}{selectall}{backspace}')
.type('0.001')
.should('have.value', '0.001')
})

it('zero swap amount', () => {
cy.get('#swap-currency-input .token-amount-input')
.clear()
.type('0.0', { delay: 400, force: true })
.type('{selectall}{backspace}{selectall}{backspace}')
.type('0.0')
.should('have.value', '0.0')
})

it('invalid swap amount', () => {
cy.get('#swap-currency-input .token-amount-input')
.clear()
.type('\\', { delay: 400, force: true })
.type('{selectall}{backspace}{selectall}{backspace}')
.type('\\')
.should('have.value', '')
})

Expand Down

0 comments on commit b69dab7

Please sign in to comment.