Skip to content

Commit bebbb3a

Browse files
committed
refactor: Clean up Button tests
1 parent 8bf110b commit bebbb3a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

โ€Žsrc/components/Button/Button.stories.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const FullWidth: StoryObj<typeof Button> = {
182182
},
183183
};
184184

185-
export const WithIcon: StoryObj<typeof Button> = {
185+
export const WithIcons: StoryObj<typeof Button> = {
186186
render: (args) => {
187187
return (
188188
<div className={vstack({ gap: "16" })}>

โ€Žsrc/components/Button/Button.test.tsxโ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ test("disabled ์†์„ฑ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ ์šฉ๋จ", () => {
100100

101101
expect(screen.getByRole("button", { name: "๋น„ํ™œ์„ฑํ™” ๋ฒ„ํŠผ" })).toBeDisabled();
102102
expect(screen.getByRole("button", { name: "ํ™œ์„ฑํ™” ๋ฒ„ํŠผ" })).toBeEnabled();
103-
expect(screen.getByRole("button", { name: "๋น„ํ™œ์„ฑํ™” ๋ฒ„ํŠผ" })).toHaveClass(
104-
"bg_bg.neutral.disabled!",
105-
);
106103
});
107104

108105
test("๊ธฐ๋ณธ์ ์œผ๋กœ ๋ฒ„ํŠผ์ด type='button'์œผ๋กœ ๋ Œ๋”๋ง๋จ", () => {

0 commit comments

Comments
ย (0)