From 0b08a0399b606a998c1446eb2211044b63808f14 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 26 Oct 2023 17:05:45 +1100 Subject: [PATCH] fix: datatestIds cannot have spaces --- ts/components/basic/SessionRadio.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/basic/SessionRadio.tsx b/ts/components/basic/SessionRadio.tsx index e8e346f27..6da751018 100644 --- a/ts/components/basic/SessionRadio.tsx +++ b/ts/components/basic/SessionRadio.tsx @@ -82,7 +82,7 @@ export const SessionRadio = (props: SessionRadioProps) => { filledSize={filledSize * 2} outlineOffset={outlineOffset} disabled={disabled} - data-testid={`input-${value}`} + data-testid={`input-${value.replaceAll(' ', '-')}`} // data-testid cannot have spaces />