From a04bdc68244caca942092ae9f45292ae5f16c394 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Thu, 5 Oct 2023 16:16:02 +0200 Subject: [PATCH] Fix tests --- .../ui/button/components/LightIconButton.tsx | 3 +++ .../dropdown/components/DropdownMenuHeader.tsx | 2 ++ .../__stories__/Opportunities.stories.tsx | 16 ++++++++++++---- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/front/src/modules/ui/button/components/LightIconButton.tsx b/front/src/modules/ui/button/components/LightIconButton.tsx index 3f5e10c1b..e08569180 100644 --- a/front/src/modules/ui/button/components/LightIconButton.tsx +++ b/front/src/modules/ui/button/components/LightIconButton.tsx @@ -9,6 +9,7 @@ export type LightIconButtonSize = 'small' | 'medium'; export type LightIconButtonProps = { className?: string; + testId?: string; Icon?: IconComponent; title?: string; size?: LightIconButtonSize; @@ -81,6 +82,7 @@ const StyledButton = styled.button< export const LightIconButton = ({ 'aria-label': ariaLabel, className, + testId, Icon, active = false, size = 'small', @@ -92,6 +94,7 @@ export const LightIconButton = ({ const theme = useTheme(); return ( {StartIcon && ( {children} {EndIcon && (