mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
fb3bec058a
* Set time range when opening a dashboard * Set UTC timezone when creating a dashboard * Added flow for selecting options in custom select fields * Fix flaky test
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import { e2e } from '@grafana/e2e';
|
|
|
|
export const smokeTestScenario = {
|
|
describeName: 'Smoke tests',
|
|
itName: 'Login scenario, create test data source, dashboard, panel, and export scenario',
|
|
addScenarioDataSource: true,
|
|
addScenarioDashBoard: true,
|
|
skipScenario: false,
|
|
scenario: () => {
|
|
e2e.flows.openDashboard();
|
|
e2e.pages.Dashboard.Toolbar.toolbarItems('Add panel').click();
|
|
e2e.pages.AddDashboard.addNewPanel().click();
|
|
|
|
e2e.components.DataSource.TestData.QueryTab.scenarioSelect().select('CSV Metric Values');
|
|
|
|
// Make sure the graph renders via checking legend
|
|
e2e.components.Panels.Visualization.Graph.Legend.legendItemAlias('A-series').should('be.visible');
|
|
|
|
// Expand options section
|
|
e2e.components.Panels.Visualization.Graph.VisualizationTab.legendSection().click();
|
|
|
|
// Disable legend
|
|
e2e.components.Panels.Visualization.Graph.Legend.showLegendSwitch().click();
|
|
|
|
e2e.components.Panels.Visualization.Graph.Legend.legendItemAlias('A-series').should('not.exist');
|
|
},
|
|
};
|