Skip to content

Commit

Permalink
Tests: Add twap tests (#4455)
Browse files Browse the repository at this point in the history
* Add twap tests
  • Loading branch information
mike10ca authored Oct 31, 2024
1 parent e828002 commit 132b4a2
Show file tree
Hide file tree
Showing 10 changed files with 599 additions and 3 deletions.
13 changes: 13 additions & 0 deletions cypress/e2e/pages/create_tx.pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@ export function deleteTx() {
cy.get(deleteTxModalBtn).click()
}

export function deleteAllTx() {
cy.get('body').then(($body) => {
if ($body.find(transactionItem).length > 0) {
cy.get(transactionItem).then(($items) => {
for (let i = $items.length - 1; i >= 0; i--) {
cy.wrap($items[i]).click({ force: true })
deleteTx()
}
})
}
})
}

export function setTxType(type) {
cy.get(radioSelector).find('label').contains(type).click()
}
Expand Down
Loading

0 comments on commit 132b4a2

Please sign in to comment.