The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/e2e/geomap-suite/geomap-map-controls.spec.ts

34 lines
1.1 KiB

import { e2e } from '../utils';
const DASHBOARD_ID = 'P2jR04WVk';
describe('Geomap layer controls options', () => {
beforeEach(() => {
e2e.flows.login(e2e.env('USERNAME'), e2e.env('PASSWORD'));
});
it('Tests map controls options', () => {
e2e.flows.openDashboard({ uid: DASHBOARD_ID, queryParams: { editPanel: 1 } });
// Show zoom
e2e.components.OptionsGroup.group('Map controls').scrollIntoView().should('exist');
cy.get('input[id="controls.showZoom"]').check({ force: true });
cy.contains('+');
cy.get('.ol-zoom').should('exist');
// Show attribution
cy.get('input[id="controls.showAttribution"]').check({ force: true });
cy.get('.ol-attribution').should('exist');
// Show scale
cy.get('input[id="controls.showScale"]').check({ force: true });
cy.get('.ol-scale-line').should('exist');
// Show measure tool
cy.get('input[id="controls.showMeasure"]').check({ force: true });
e2e.components.PanelEditor.measureButton().should('exist');
// Show debug
cy.get('input[id="controls.showDebug"]').check({ force: true });
e2e.components.DebugOverlay.wrapper().should('exist');
});
});