mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
3225b119d4
* Use new editor * Add basic fields * Add labels * Add ids * Add ManualEntryEditor * Use tooltip prop * Switch to inline labels * Fix inline label tooltip position * Allow resetting max-width * Replace form inputs * Add random walk editor * separate editors * Add logs and endpoints fields * Add PredictablePulseEditor * Add CSVWaveEditor * Add grow prop * Add default query * Fix types * Fix manual editor * Fix type issues * Handle scenario change * Sort scenarios by label * Add ManualEditor test * Fix label height * test manual editor * Update test * Setup QueryEditor tests * Fix selected value * Connect CSVWaveEditor * Convert stream data to numbers * Fix random walk editor * Cleanup * Convert scenarios to ts * Remove extra icon styles * Minor tweaks * Update e2e tests * Remove useEffect * Add missing aria-labels * Use new button components
39 lines
1.3 KiB
TypeScript
39 lines
1.3 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.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');
|
|
},
|
|
};
|