feat: add aria label, fix test, transition constant for better testing

This commit is contained in:
2026-02-09 09:37:13 +05:00
parent ede31942d0
commit 2bbe59107c
12 changed files with 232 additions and 32 deletions
+5
View File
@@ -9,6 +9,7 @@ describe("Button.svelte", () => {
props: {
icon: MockIcon,
label: "Test Button",
ariaLabel: "Test button",
},
});
@@ -20,6 +21,7 @@ describe("Button.svelte", () => {
const { container } = render(Button, {
props: {
icon: MockIcon,
ariaLabel: "Test button",
},
});
@@ -33,6 +35,7 @@ describe("Button.svelte", () => {
icon: MockIcon,
label: "Click me",
onclick,
ariaLabel: "Test button",
},
});
@@ -49,6 +52,7 @@ describe("Button.svelte", () => {
icon: MockIcon,
label: "Disabled",
disabled: true,
ariaLabel: "Test button",
},
});
@@ -61,6 +65,7 @@ describe("Button.svelte", () => {
props: {
icon: MockIcon,
label: "Enabled",
ariaLabel: "Test button",
},
});