From 4cebeb6a35c5a733a531c9a26f78ba52732d24ea Mon Sep 17 00:00:00 2001 From: Martin Hradil Date: Tue, 10 Oct 2023 13:18:52 +0000 Subject: [PATCH] fix tests - missing data-cy --- src/components/patternfly-wrappers/stateful-dropdown.tsx | 3 +++ src/components/shared/language-switcher.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/src/components/patternfly-wrappers/stateful-dropdown.tsx b/src/components/patternfly-wrappers/stateful-dropdown.tsx index 8067eeabdb..33f647a3fe 100644 --- a/src/components/patternfly-wrappers/stateful-dropdown.tsx +++ b/src/components/patternfly-wrappers/stateful-dropdown.tsx @@ -27,6 +27,7 @@ interface IProps { isPlain?: boolean; ariaLabel?: string; + 'data-cy'?: string; } export const StatefulDropdown = ({ @@ -37,6 +38,7 @@ export const StatefulDropdown = ({ defaultText, isPlain = true, ariaLabel, + 'data-cy': dataCy, }: IProps) => { const [isOpen, setOpen] = useState(false); const [selected, setSelected] = useState(undefined); @@ -54,6 +56,7 @@ export const StatefulDropdown = ({ position={position || DropdownPosition.right} autoFocus={false} aria-label={ariaLabel} + data-cy={dataCy} /> ); }; diff --git a/src/components/shared/language-switcher.tsx b/src/components/shared/language-switcher.tsx index 562a2e6966..6e52da9c9c 100644 --- a/src/components/shared/language-switcher.tsx +++ b/src/components/shared/language-switcher.tsx @@ -10,6 +10,7 @@ export function LanguageSwitcher(_props) { return (