mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
e2e: Update annotation marker selector (#67135)
This commit is contained in:
parent
a6577cc6fd
commit
c4c747cca6
@ -55,7 +55,7 @@ e2e.scenario({
|
|||||||
e2e.components.Panels.Panel.title('Panel one')
|
e2e.components.Panels.Panel.title('Panel one')
|
||||||
.should('exist')
|
.should('exist')
|
||||||
.within(() => {
|
.within(() => {
|
||||||
e2e.pages.SoloPanel.Annotations.marker().should('exist').should('have.length', 4);
|
e2e.pages.Dashboard.Annotations.marker().should('exist').should('have.length', 4);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -2,7 +2,7 @@ import { e2e } from '@grafana/e2e';
|
|||||||
|
|
||||||
e2e.scenario({
|
e2e.scenario({
|
||||||
describeName: 'Query editor',
|
describeName: 'Query editor',
|
||||||
itName: 'Undo should work in query editor for prometheus.',
|
itName: 'Undo should work in query editor for prometheus -- test CI.',
|
||||||
addScenarioDataSource: false,
|
addScenarioDataSource: false,
|
||||||
addScenarioDashBoard: false,
|
addScenarioDashBoard: false,
|
||||||
skipScenario: false,
|
skipScenario: false,
|
||||||
|
@ -177,6 +177,9 @@ export const Pages = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Annotations: {
|
||||||
|
marker: 'data-testid annotation-marker',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Dashboards: {
|
Dashboards: {
|
||||||
url: '/dashboards',
|
url: '/dashboards',
|
||||||
@ -249,9 +252,6 @@ export const Pages = {
|
|||||||
},
|
},
|
||||||
SoloPanel: {
|
SoloPanel: {
|
||||||
url: (page: string) => `/d-solo/${page}`,
|
url: (page: string) => `/d-solo/${page}`,
|
||||||
Annotations: {
|
|
||||||
marker: 'data-testid annotation-marker',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
PluginsList: {
|
PluginsList: {
|
||||||
page: 'Plugins list page',
|
page: 'Plugins list page',
|
||||||
|
@ -127,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.Dashboard.Annotations.marker}
|
||||||
>
|
>
|
||||||
{marker}
|
{marker}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user