diff --git a/cypress/component/integration/Button.cy.tsx b/cypress/component/integration/Button.cy.tsx index 461fee0c..63931541 100644 --- a/cypress/component/integration/Button.cy.tsx +++ b/cypress/component/integration/Button.cy.tsx @@ -9,7 +9,11 @@ describe('Component | Integration | Button', function () { describe('primary button without icons', () => { beforeEach(() => { - cy.mount(, +
+ + , +
, ); }); it('should render primary button with both icons and children', () => { @@ -80,9 +95,12 @@ describe('Component | Integration | Button', function () { describe('primary button with preIcon with children', () => { beforeEach(() => { cy.mount( - , +
+ + , +
, ); }); it('should render primary button with preIcon and with children', () => { @@ -101,9 +119,12 @@ describe('Component | Integration | Button', function () { describe('primary button with posIcon with children', () => { beforeEach(() => { cy.mount( - , +
+ + , +
, ); }); it('should render primary button with posIcon and children', () => { @@ -122,9 +143,12 @@ describe('Component | Integration | Button', function () { describe('primary button without icons and with children', () => { beforeEach(() => { cy.mount( - , +
+ + , +
, ); }); it('should render primary button without icons and children', () => { @@ -144,7 +168,11 @@ describe('Component | Integration | Button', function () { describe('secondary button without icons', () => { beforeEach(() => { - cy.mount(, +
+ + , +
, ); }); it('should render secondary button with both icons and children', () => { @@ -228,12 +265,14 @@ describe('Component | Integration | Button', function () { describe('secondary button with preIcon with children', () => { beforeEach(() => { cy.mount( - , +
+ +
, ); }); it('should render secondary button with preIcon and with children', () => { @@ -245,19 +284,22 @@ describe('Component | Integration | Button', function () { }); it('should match snapshot', () => { - compareSnapshot(cy, 'primary-button-with-preIcon-with-children'); + compareSnapshot(cy, 'secondary-button-with-preIcon-with-children'); }); }); describe('secondary button with posIcon with children', () => { beforeEach(() => { cy.mount( - , +
+ + , +
, ); }); it('should render secondary button with posIcon and children', () => { @@ -276,9 +318,12 @@ describe('Component | Integration | Button', function () { describe('secondary button without icons and with children', () => { beforeEach(() => { cy.mount( - , +
+ + , +
, ); }); it('should render secondary button without icons and children', () => {