Skip to content

Commit

Permalink
add correct styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed Oct 23, 2023
1 parent c610dd7 commit cf355e3
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 42 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
42 changes: 0 additions & 42 deletions cypress/component/integration/Button.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../../../src/global.css';
import React from 'react';
import { Button } from '../../../src/components';
import { FiArrowUpRight } from 'react-icons/fi';
import { compareSnapshot } from '../../compareSnapshot';
Expand All @@ -8,26 +7,6 @@ describe('Component | Integration | Button', function () {
describe('Button', () => {
// PRIMARY VARIANT

describe('primary button with both icons', () => {
beforeEach(() => {
cy.mount(
<Button
preIcon={<FiArrowUpRight data-testid="preIcon" />}
posIcon={<FiArrowUpRight data-testid="posIcon" />}
/>,
);
});
it('should render primary button with both icons', () => {
cy.get('[data-testid="button"]').should('exist');
cy.get('[data-testid="preIcon"]').should('exist');
cy.get('[data-testid="posIcon"]').should('exist');
});

it('should match snapshot', () => {
compareSnapshot(cy, 'primary-button-with-both-icons');
});
});

describe('primary button without icons', () => {
beforeEach(() => {
cy.mount(<Button />);
Expand Down Expand Up @@ -163,27 +142,6 @@ describe('Component | Integration | Button', function () {

// SECONDARY VARIANT

describe('secondary button with both icons', () => {
beforeEach(() => {
cy.mount(
<Button
variant="secondary"
preIcon={<FiArrowUpRight data-testid="preIcon" />}
posIcon={<FiArrowUpRight data-testid="posIcon" />}
/>,
);
});
it('should render secondary button with both icons', () => {
cy.get('[data-testid="button"]').should('exist');
cy.get('[data-testid="preIcon"]').should('exist');
cy.get('[data-testid="posIcon"]').should('exist');
});

it('should match snapshot', () => {
compareSnapshot(cy, 'secondary-button-with-both-icons');
});
});

describe('secondary button without icons', () => {
beforeEach(() => {
cy.mount(<Button variant="secondary" />);
Expand Down

0 comments on commit cf355e3

Please sign in to comment.