Skip to content

Commit 06a318f

Browse files
AntonioVentiliigithub-actions[bot]peterpeterparker
authored
fix: Default testId for Collapsible component (#686)
# Motivation The `Collapsible` component renders `TestIdWrapper`. This last component required a non-nullish `testId` (for obvious reasons). So, since this seems to be the intention of the code, we default the `testId` to a value. --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: David Dal Busco <[email protected]>
1 parent 526b6a8 commit 06a318f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/Collapsible.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
export let id: string | undefined = undefined;
1010
export let initiallyExpanded = false;
1111
export let maxContentHeight: number | undefined = undefined;
12-
export let testId: string | undefined = undefined;
12+
export let testId = "collapsible";
1313
1414
export let iconSize: "small" | "medium" = "small";
1515
export let expandButton = true;

0 commit comments

Comments
 (0)