mirror of
https://github.com/grafana/grafana.git
synced 2025-01-21 22:13:38 -06:00
54f8996acf
* ValueMappings: Force overflowing modal content to scroll * ValueMappings: Update unit tests * Select: Portal Select to document.body, close menu on scroll * Select: Fix tests + apply updates from https://github.com/grafana/grafana/pull/32833 * ValueMappingsEditorModal: Revert to using selectEvent in the tests * Select: Fix remaining unit tests * Portal: Rewrite Portal as a functional component so we can use useTheme2 * Modal: Remove modal styles from this PR * Update E2E tests * More unit test fixes * Select: Fix remaining E2E tests * Select: Create util method to select an option in tests
32 lines
1.1 KiB
TypeScript
32 lines
1.1 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.VizLegend.seriesName('A-series').should('be.visible');
|
|
|
|
// Expand options section
|
|
e2e.components.PanelEditor.applyButton();
|
|
|
|
// Make sure panel is & visualization is added to dashboard
|
|
e2e.components.VizLegend.seriesName('A-series').should('be.visible');
|
|
},
|
|
};
|