From 62a87885fc8812f175c0b9ba70ce0024529a387f Mon Sep 17 00:00:00 2001 From: Matias Chomicki Date: Wed, 19 Apr 2023 22:43:46 +0200 Subject: [PATCH] Annotations: fix testid attribute (#66877) --- .../app/features/dashboard/components/SubMenu/Annotations.tsx | 2 +- .../panel/timeseries/plugins/annotations/AnnotationMarker.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/app/features/dashboard/components/SubMenu/Annotations.tsx b/public/app/features/dashboard/components/SubMenu/Annotations.tsx index 5d950ea06c3..02967e42066 100644 --- a/public/app/features/dashboard/components/SubMenu/Annotations.tsx +++ b/public/app/features/dashboard/components/SubMenu/Annotations.tsx @@ -22,7 +22,7 @@ export const Annotations = ({ annotations, onAnnotationChanged, events }: Props) } return ( -
+
{visibleAnnotations.map((annotation) => ( ); }, [canEditAnnotations, canDeleteAnnotations, onAnnotationDelete, onAnnotationEdit, timeFormatter, annotation]); - const isRegionAnnotation = Boolean(annotation.isRegion) && width > MIN_REGION_ANNOTATION_WIDTH; let left = `${width / 2}px`; @@ -128,7 +127,7 @@ export function AnnotationMarker({ annotation, timeZone, width }: Props) { onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave} className={!isRegionAnnotation ? styles.markerWrapper : undefined} - data-testId={selectors.pages.SoloPanel.Annotations.marker} + data-testid={selectors.pages.SoloPanel.Annotations.marker} > {marker}