Skip to content

Commit

Permalink
add data-testid back to data-encoder radio inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rossedfort committed Oct 10, 2023
1 parent 0e0b505 commit bfbb789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/data-encoder-settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
<RadioGroup name="override" group={override}>
<RadioInput
id="use-configuration-endpoint-radio"
data-testid="use-configuration-endpoint-input"
value={false}
label={translate(
'data-encoder',
Expand All @@ -124,6 +125,7 @@
/>
<RadioInput
id="use-local-endpoint-radio"
data-testid="use-local-endpoint-input"
value={true}
label={translate('data-encoder', 'browser-override-description', {
level: namespaceOrCluster,
Expand Down
1 change: 1 addition & 0 deletions src/lib/holocene/radio-input/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface RadioInputProps<T> extends HTMLInputAttributes {
labelHidden?: boolean;
group?: Writable<T>;
name?: string;
'data-testid'?: string;
}

export interface RadioGroupProps<T> extends HTMLAttributes<HTMLDivElement> {
Expand Down

0 comments on commit bfbb789

Please sign in to comment.