Annotations: fix testid attribute (#66877)

This commit is contained in:
Matias Chomicki 2023-04-19 22:43:46 +02:00 committed by GitHub
parent 47121e6e8a
commit 62a87885fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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}

View File

@ -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>