mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Annotations: fix testid attribute (#66877)
This commit is contained in:
parent
47121e6e8a
commit
62a87885fc
@ -22,7 +22,7 @@ export const Annotations = ({ annotations, onAnnotationChanged, events }: Props)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div data-testId={selectors.pages.Dashboard.SubMenu.Annotations.annotationsWrapper}>
|
<div data-testid={selectors.pages.Dashboard.SubMenu.Annotations.annotationsWrapper}>
|
||||||
{visibleAnnotations.map((annotation) => (
|
{visibleAnnotations.map((annotation) => (
|
||||||
<AnnotationPicker
|
<AnnotationPicker
|
||||||
events={events}
|
events={events}
|
||||||
|
@ -102,7 +102,6 @@ export function AnnotationMarker({ annotation, timeZone, width }: Props) {
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}, [canEditAnnotations, canDeleteAnnotations, onAnnotationDelete, onAnnotationEdit, timeFormatter, annotation]);
|
}, [canEditAnnotations, canDeleteAnnotations, onAnnotationDelete, onAnnotationEdit, timeFormatter, annotation]);
|
||||||
|
|
||||||
const isRegionAnnotation = Boolean(annotation.isRegion) && width > MIN_REGION_ANNOTATION_WIDTH;
|
const isRegionAnnotation = Boolean(annotation.isRegion) && width > MIN_REGION_ANNOTATION_WIDTH;
|
||||||
|
|
||||||
let left = `${width / 2}px`;
|
let left = `${width / 2}px`;
|
||||||
@ -128,7 +127,7 @@ export function AnnotationMarker({ annotation, timeZone, width }: Props) {
|
|||||||
onMouseEnter={onMouseEnter}
|
onMouseEnter={onMouseEnter}
|
||||||
onMouseLeave={onMouseLeave}
|
onMouseLeave={onMouseLeave}
|
||||||
className={!isRegionAnnotation ? styles.markerWrapper : undefined}
|
className={!isRegionAnnotation ? styles.markerWrapper : undefined}
|
||||||
data-testId={selectors.pages.SoloPanel.Annotations.marker}
|
data-testid={selectors.pages.SoloPanel.Annotations.marker}
|
||||||
>
|
>
|
||||||
{marker}
|
{marker}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user