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();
+ cy.mount(
+
+
+
,
+ );
});
it('should render primary button without icons', () => {
cy.get('[data-testid="button"]').should('exist');
@@ -24,7 +28,11 @@ describe('Component | Integration | Button', function () {
describe('primary button with preIcon', () => {
beforeEach(() => {
- cy.mount(} />);
+ cy.mount(
+
+ } />;
+
,
+ );
});
it('should render primary button with preIcon', () => {
@@ -40,7 +48,11 @@ describe('Component | Integration | Button', function () {
describe('primary button with posIcon', () => {
beforeEach(() => {
- cy.mount(} />);
+ cy.mount(
+
+ } />
+
,
+ );
});
it('should render primary button with posIcon', () => {
cy.get('[data-testid="button"]').should('exist');
@@ -56,12 +68,15 @@ describe('Component | Integration | Button', function () {
describe('primary button with both icons and with children', () => {
beforeEach(() => {
cy.mount(
- }
- posIcon={}
- >
- Children
- ,
+
+
}
+ posIcon={
}
+ >
+
Children
+
+ ,
+
,
);
});
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(
- }>
- Children
- ,
+ ,
);
});
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(
- }>
- Children
- ,
+ ,
);
});
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();
+ cy.mount(
+
+
+
,
+ );
});
it('should render secondary button without icons', () => {
cy.get('[data-testid="button"]').should('exist');
@@ -160,10 +188,13 @@ describe('Component | Integration | Button', function () {
describe('secondary button with preIcon', () => {
beforeEach(() => {
cy.mount(
- }
- />,
+
+ }
+ />
+ ,
+
,
);
});
it('should render secondary button with preIcon', () => {
@@ -180,10 +211,13 @@ describe('Component | Integration | Button', function () {
describe('secondary button with posIcon', () => {
beforeEach(() => {
cy.mount(
- }
- />,
+
+ }
+ />
+ ,
+
,
);
});
it('should render secondary button with posIcon', () => {
@@ -200,13 +234,16 @@ describe('Component | Integration | Button', function () {
describe('secondary button with both icons and with children', () => {
beforeEach(() => {
cy.mount(
- }
- posIcon={}
- >
- Children
- ,
+
+
}
+ posIcon={
}
+ >
+
Children
+
+ ,
+
,
);
});
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(
- }
- >
- Children
- ,
+ ,
);
});
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(
- }
- >
- Children
- ,
+
+
}
+ >
+
Children
+
+ ,
+
,
);
});
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', () => {