cypress/integration/smokeTest.js
// If user's DAI balance is 0 the Deposit button will be disabled, skip to withdrawal test
If user's DAI balance is 0 the Deposit button will be disabled, skip to withdrawal test
If user ' s DAI balance is 0 the Deposit button will be disabled skip to withdrawal test
function _tryDeposit() {
    cy.get('body').then((body) => {
      if (body.find('#_depositToken').is(':not(:disabled)')) {
        cy.get('#_depositToken').click()
        cy.contains('You got')
        cy.contains('View your account').click()
        cy.contains('Winning odds:')
      }
    })
  }
function _tryDeposit ( ) { cy . get ( 'body' ) . then ( ( body ) => { if ( body . find ( '#_depositToken' ) . is ( ':not(:disabled)' ) ) { cy . get ( '#_depositToken' ) . click ( ) cy . contains ( 'You got' ) cy . contains ( 'View your account' ) . click ( ) cy . contains ( 'Winning odds:' ) } } ) }
If user's DAI balance is 0 the Deposit button will be disabled, skip to withdrawal test
If user ' s DAI balance is 0 the Deposit button will be disabled skip to withdrawal test
/* Order Complete & View Account */