test: remove or fix brittle tests

This commit is contained in:
2026-02-08 15:17:17 +05:00
parent 81771970c7
commit b09e3aeab4
23 changed files with 31 additions and 553 deletions
-16
View File
@@ -69,21 +69,5 @@ describe("Button.svelte", () => {
expect(button).not.toBeDisabled();
});
it("should render with different types", () => {
const types = ["primary", "secondary", "danger", "outline", "mini"] as const;
types.forEach(type => {
const { container, unmount } = render(Button, {
props: {
icon: MockIcon,
label: `${type} Button`,
type,
},
});
expect(screen.getByText(`${type} Button`)).toBeInTheDocument();
expect(container.querySelector("svg")).toBeInTheDocument();
unmount();
});
});
});