mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* duplicate various-suite in scenes e2e * restore original various-suite * adjust various-suite e2e tests for scenes * adjust workflow for test run * adjust flaky exemplars test * remove old dash script and restore workflow * duplicate e2e/various-suite/keybinds.spec.ts into e2e/scenes * restore original e2e/various-suite/keybinds.spec.ts * add new keybinds e2e test * restore workflow file after test run
28 lines
991 B
TypeScript
28 lines
991 B
TypeScript
import { e2e } from '../utils';
|
|
|
|
describe('Visualization suggestions', () => {
|
|
beforeEach(() => {
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
|
});
|
|
|
|
it('Should be shown and clickable', () => {
|
|
e2e.flows.openDashboard({ uid: 'aBXrJ0R7z', queryParams: { editPanel: 9 } });
|
|
|
|
// Try visualization suggestions
|
|
e2e.components.PanelEditor.toggleVizPicker().click();
|
|
e2e.components.RadioButton.container().filter(':contains("Suggestions")').click();
|
|
|
|
// Verify we see suggestions
|
|
e2e.components.VisualizationPreview.card('Line chart').should('be.visible');
|
|
|
|
// Verify search works
|
|
cy.get('[placeholder="Search for..."]').type('Table');
|
|
// Should no longer see line chart
|
|
e2e.components.VisualizationPreview.card('Line chart').should('not.exist');
|
|
|
|
// Select a visualisation
|
|
e2e.components.VisualizationPreview.card('Table').click();
|
|
e2e.components.Panels.Visualization.Table.header().should('be.visible');
|
|
});
|
|
});
|