Skip to content

Commit

Permalink
test(icon-button): add playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
divyajindel committed Oct 19, 2023
1 parent 07fcb39 commit 4db9127
Show file tree
Hide file tree
Showing 4 changed files with 245 additions and 163 deletions.
155 changes: 0 additions & 155 deletions cypress/components/icon-button/icon-button.cy.tsx

This file was deleted.

13 changes: 13 additions & 0 deletions src/components/icon-button/component.test-pw.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from "react";
import IconButton, { IconButtonProps } from ".";
import Icon from "../icon";

const IconButtonComponent = (props: Partial<IconButtonProps>) => {
return (
<IconButton aria-label="icon-button" onClick={() => {}} {...props}>
<Icon type="home" />
</IconButton>
);
};

export default IconButtonComponent;
8 changes: 0 additions & 8 deletions src/components/icon-button/icon-button-test.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,3 @@ export const Default = (props: IconButtonProps) => {
};

Default.storyName = "default";

export const IconButtonComponent = (props: Partial<IconButtonProps>) => {
return (
<IconButton aria-label="icon-button" onClick={() => {}} {...props}>
<Icon type="home" />
</IconButton>
);
};
Loading

0 comments on commit 4db9127

Please sign in to comment.