Skip to content

Commit

Permalink
update balance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mazmassa committed Oct 12, 2023
1 parent 0cb106d commit 7c78d85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cypress/component/integration/Balance.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ describe('Component | Integration | Balance', function () {
it('should render', () => {
cy.mount(<Balance amount={'0123456.78'} equal={'000123456,78'} />);

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(
Expand All @@ -29,7 +31,9 @@ describe('Component | Integration | Balance', function () {
it('should render', () => {
cy.mount(<Balance amount={'0123456.78'} />);

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');
});
Expand Down

0 comments on commit 7c78d85

Please sign in to comment.