* 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
26 lines
775 B
TypeScript
26 lines
775 B
TypeScript
import { e2e } from '@grafana/e2e';
|
|
|
|
e2e.scenario({
|
|
describeName: 'Explore',
|
|
itName: 'Basic path through Explore.',
|
|
addScenarioDataSource: false,
|
|
addScenarioDashBoard: false,
|
|
skipScenario: false,
|
|
scenario: () => {
|
|
e2e.pages.Explore.visit();
|
|
e2e.pages.Explore.General.container().should('have.length', 1);
|
|
e2e.components.RefreshPicker.runButton().should('have.length', 1);
|
|
|
|
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();
|
|
|
|
const canvases = e2e().get('canvas');
|
|
canvases.should('have.length', 1);
|
|
},
|
|
});
|