Skip to content

Commit 17221cf

Browse files
committed
add data test id to encoding format switch
1 parent f9e09d9 commit 17221cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/features/decoder/components/encoding-format-toggle-swith/encoding-format-toggle-switch.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { getPickersUiDictionary } from "@/features/localization/services/ui-lang
66
import { Switch } from "react-aria-components";
77
import clsx from "clsx";
88
import { useEncoderStore } from "@/features/encoder/services/encoder.store";
9+
import { dataTestidDictionary } from "@/libs/testing/data-testid.dictionary";
910

1011
interface EncodingFormatToggleSwitchComponentProps {
1112
languageCode: string;
@@ -45,7 +46,10 @@ export const EncodingFormatToggleSwitchComponent: React.FC<
4546
<div className={styles.label}>
4647
<span className={styles.fullLabel}>Base64URL Encoded?</span>
4748
</div>
48-
<label className={styles.switch__container}>
49+
<label
50+
className={styles.switch__container}
51+
data-testid={dataTestidDictionary.encoder.switch}
52+
>
4953
<input
5054
type="checkbox"
5155
role="switch"

0 commit comments

Comments
 (0)