Skip to content

Commit

Permalink
Fix api-transaction-methods.cy.ts
Browse files Browse the repository at this point in the history
- we expect the API to have at least the same number of methods
  • Loading branch information
lubej committed Jun 19, 2024
1 parent 0ac34cc commit 8925da2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/api-transaction-methods.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('check all transaction methods from API are mapped in transactionMethod
if (!response.isOkStatusCode) return // Ignore if API is broken

const allApiMethods = response.body.data.list
expect(allApiMethods).to.have.length.lte(Object.keys(OperationsRowMethodEnum).length)
expect(allApiMethods).to.have.length.gte(Object.keys(OperationsRowMethodEnum).length)
cy.visit('/e2e')
cy.window()
.should('have.a.property', 'oasisscan')
Expand All @@ -46,7 +46,7 @@ describe('check all transaction methods from API are mapped in transactionMethod
if (!response.isOkStatusCode) return // Ignore if API is broken

const allApiMethods = response.body.data.list
expect(allApiMethods).to.have.length.lte(Object.keys(OperationsRowMethodEnum).length)
expect(allApiMethods).to.have.length.gte(Object.keys(OperationsRowMethodEnum).length)
cy.visit('/e2e')
cy.window()
.should('have.a.property', 'oasisscan')
Expand Down

0 comments on commit 8925da2

Please sign in to comment.