From 8925da2b43c88159ab33623669e6ab87bed14ba1 Mon Sep 17 00:00:00 2001 From: Matej Lubej Date: Wed, 19 Jun 2024 13:02:56 +0200 Subject: [PATCH] Fix api-transaction-methods.cy.ts - we expect the API to have at least the same number of methods --- cypress/e2e/api-transaction-methods.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/api-transaction-methods.cy.ts b/cypress/e2e/api-transaction-methods.cy.ts index 1d808a81b6..91a371a3cf 100644 --- a/cypress/e2e/api-transaction-methods.cy.ts +++ b/cypress/e2e/api-transaction-methods.cy.ts @@ -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') @@ -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')