From 7ef25ea828f87cba059638485c49aaebfbbc2369 Mon Sep 17 00:00:00 2001
From: MaZ <126461030+mazmassa@users.noreply.github.com>
Date: Thu, 12 Oct 2023 11:47:52 +0200
Subject: [PATCH] update balance tests (#358)
---
cypress/component/integration/Balance.cy.tsx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/cypress/component/integration/Balance.cy.tsx b/cypress/component/integration/Balance.cy.tsx
index a7492615..b3c4ce52 100644
--- a/cypress/component/integration/Balance.cy.tsx
+++ b/cypress/component/integration/Balance.cy.tsx
@@ -9,7 +9,9 @@ describe('Component | Integration | Balance', function () {
it('should render', () => {
cy.mount();
- cy.get('[data-testid="balance"]').should('exist');
+ cy.get('[data-testid="balance"] [data-testid="svg-icon"]').should(
+ 'exist',
+ );
cy.get('[data-testid="balance"]').should('contain', '0123456.78');
cy.get('[data-testid="balance-equal"]').should('exist');
cy.get('[data-testid="balance-equal"]').should(
@@ -29,7 +31,9 @@ describe('Component | Integration | Balance', function () {
it('should render', () => {
cy.mount();
- cy.get('[data-testid="balance"]').should('exist');
+ cy.get('[data-testid="balance"] [data-testid="svg-icon"]').should(
+ 'exist',
+ );
cy.get('[data-testid="balance"]').should('contain', '0123456.78');
cy.get('[data-testid="balance-equal"]').should('not.exist');
});