diff --git a/cypress/component/integration/Balance.cy.tsx b/cypress/component/integration/Balance.cy.tsx index 4712c8ce..b50f481d 100644 --- a/cypress/component/integration/Balance.cy.tsx +++ b/cypress/component/integration/Balance.cy.tsx @@ -33,7 +33,11 @@ describe('Component | Integration | Balance', function () { 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-amount"]').should( + 'contain', + '0123456.78', + ); cy.get('[data-testid="balance-equal"]').should('not.exist'); }); diff --git a/src/components/Balance/Balance.test.tsx b/src/components/Balance/Balance.test.tsx deleted file mode 100644 index b1cf1acd..00000000 --- a/src/components/Balance/Balance.test.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import '@testing-library/jest-dom'; -import { render, screen } from '@testing-library/react'; -import { Balance } from '.'; - -describe('Components | Balance', () => { - test('it should render', () => { - render(); - - let balance = screen.getByTestId('balance'); - - expect(balance).toBeInTheDocument(); - }); -}); diff --git a/src/components/Balance/Balance.tsx b/src/components/Balance/Balance.tsx index 134b08a0..bbe84466 100644 --- a/src/components/Balance/Balance.tsx +++ b/src/components/Balance/Balance.tsx @@ -31,7 +31,12 @@ export function Balance({ ...props }) { className={`flex items-center w-fit ${customClass}`} > - + {equal ? (