Skip to content

Commit

Permalink
command
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoublejay committed Aug 3, 2021
1 parent 55365f1 commit 308db3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ declare global {
* @example cy.sendTokenToWallet(['BTC', 'ETH']).wait(4000)
*/
sendTokenToWallet (tokens: string[]): Chainable<Element>

/**
* @description Wait for the ocean interface to be confirmed then close the drawer
* @example cy.closeOceanInterface()
*/
closeOceanInterface (): Chainable<Element>
}
}
}
Expand Down Expand Up @@ -91,3 +97,7 @@ Cypress.Commands.add('sendTokenToWallet', (tokens: string[]) => {
})
cy.wait(['@sendTokensToAddress'])
})

Cypress.Commands.add('closeOceanInterface', () => {
cy.wait(10000).getByTestID('oceanInterface_close').click().wait(2000)
})

0 comments on commit 308db3a

Please sign in to comment.