Commit 1d06b47e authored by Moody Salem's avatar Moody Salem

workaround so tests are less flaky

parent 0089c2ee
...@@ -2,7 +2,7 @@ describe('Pool', () => { ...@@ -2,7 +2,7 @@ describe('Pool', () => {
beforeEach(() => cy.visit('/pool')) beforeEach(() => cy.visit('/pool'))
it('can search for a pool', () => { it('can search for a pool', () => {
cy.get('#join-pool-button').click() cy.get('#join-pool-button').click()
cy.get('#token-search-input').type('DAI') cy.get('#token-search-input').type('DAI', { delay: 200 })
}) })
it('can import a pool', () => { it('can import a pool', () => {
......
...@@ -3,7 +3,7 @@ describe('Send', () => { ...@@ -3,7 +3,7 @@ describe('Send', () => {
it('can enter an amount into input', () => { it('can enter an amount into input', () => {
cy.get('#sending-no-swap-input') cy.get('#sending-no-swap-input')
.type('0.001') .type('0.001', { delay: 200 })
.should('have.value', '0.001') .should('have.value', '0.001')
}) })
}) })
...@@ -2,31 +2,31 @@ describe('Swap', () => { ...@@ -2,31 +2,31 @@ describe('Swap', () => {
beforeEach(() => cy.visit('/swap')) beforeEach(() => cy.visit('/swap'))
it('can enter an amount into input', () => { it('can enter an amount into input', () => {
cy.get('#swap-currency-input .token-amount-input') cy.get('#swap-currency-input .token-amount-input')
.type('0.001') .type('0.001', { delay: 200 })
.should('have.value', '0.001') .should('have.value', '0.001')
}) })
it('zero swap amount', () => { it('zero swap amount', () => {
cy.get('#swap-currency-input .token-amount-input') cy.get('#swap-currency-input .token-amount-input')
.type('0.0') .type('0.0', { delay: 200 })
.should('have.value', '0.0') .should('have.value', '0.0')
}) })
it('invalid swap amount', () => { it('invalid swap amount', () => {
cy.get('#swap-currency-input .token-amount-input') cy.get('#swap-currency-input .token-amount-input')
.type('\\') .type('\\', { delay: 200 })
.should('have.value', '') .should('have.value', '')
}) })
it('can enter an amount into output', () => { it('can enter an amount into output', () => {
cy.get('#swap-currency-output .token-amount-input') cy.get('#swap-currency-output .token-amount-input')
.type('0.001') .type('0.001', { delay: 200 })
.should('have.value', '0.001') .should('have.value', '0.001')
}) })
it('zero output amount', () => { it('zero output amount', () => {
cy.get('#swap-currency-output .token-amount-input') cy.get('#swap-currency-output .token-amount-input')
.type('0.0') .type('0.0', { delay: 200 })
.should('have.value', '0.0') .should('have.value', '0.0')
}) })
...@@ -35,7 +35,7 @@ describe('Swap', () => { ...@@ -35,7 +35,7 @@ describe('Swap', () => {
cy.get('.token-item-0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735').should('be.visible') cy.get('.token-item-0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735').should('be.visible')
cy.get('.token-item-0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735').click({ force: true }) cy.get('.token-item-0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735').click({ force: true })
cy.get('#swap-currency-input .token-amount-input').should('be.visible') cy.get('#swap-currency-input .token-amount-input').should('be.visible')
cy.get('#swap-currency-input .token-amount-input').type('0.001', { force: true }) cy.get('#swap-currency-input .token-amount-input').type('0.001', { force: true, delay: 200 })
cy.get('#swap-currency-output .token-amount-input').should('not.equal', '') cy.get('#swap-currency-output .token-amount-input').should('not.equal', '')
cy.get('#show-advanced').click() cy.get('#show-advanced').click()
cy.get('#swap-button').click() cy.get('#swap-button').click()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment