mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
701ad79bb5
* Explore: Replaces navbar-button and overriden explore button css classes with ToolbarButton and cleans up scss & markup, removes ResponsiveButton * Change live button text when paused * For the dashboard toolbar button I need a transparent button so I refactored the states/variants into a new ToolbarButtonVariatn * PageToolbar wip * Progress * Prgress * Minor progress * Fixed back button and responsive titles * Fixed tv mode * Updated * support tv modes and playlist * more progress * Fixing lots of view states and responsive features * Minor fixes * review fixes * Fixes to e2e tests * Review fixes
34 lines
1.2 KiB
TypeScript
34 lines
1.2 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.components.PageToolbar.item('Add panel').click();
|
|
e2e.pages.AddDashboard.addNewPanel().click();
|
|
|
|
e2e.components.DataSource.TestData.QueryTab.scenarioSelectContainer()
|
|
.should('be.visible')
|
|
.within(() => {
|
|
e2e.components.Select.input().should('be.visible').click();
|
|
|
|
cy.contains('CSV Metric Values').scrollIntoView().should('be.visible').click();
|
|
});
|
|
|
|
// 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');
|
|
},
|
|
};
|