Skip to content

Commit

Permalink
Extra Test Id's for easy testing (#2251)
Browse files Browse the repository at this point in the history
* Add more testid's so it's easy to select items when testing.

* nix brackets
  • Loading branch information
GiantRobots authored Aug 1, 2024
1 parent 555e018 commit fc30f9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/holocene/select/option.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
description?: string;
disabled?: boolean;
class?: string;
'data-testid'?: string;
}
export const EMPTY_OPTION: OptionType<string> = {
Expand Down Expand Up @@ -80,6 +81,7 @@
{description}
{disabled}
class={className}
data-testid={$$restProps['data-testid'] ?? ''}
>
<slot name="leading" slot="leading" />
<span bind:this={slotWrapper}>
Expand Down
1 change: 1 addition & 0 deletions src/lib/holocene/select/select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
{disabled}
controls="{id}-select"
{variant}
data-testid={`${$$restProps['data-testid'] ?? ''}-button`}
>
<slot name="leading" slot="leading">
{#if leadingIcon}
Expand Down

0 comments on commit fc30f9a

Please sign in to comment.