mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* A11y: Fix fastpass issues for /explore with gdev-testdata * Chore: changes after PR feedback * Chore: revert file to main * Tests: fix for e2e tests
25 lines
779 B
TypeScript
25 lines
779 B
TypeScript
import { e2e } from '@grafana/e2e';
|
|
|
|
e2e.scenario({
|
|
describeName: 'Query editor',
|
|
itName: 'Undo should work in query editor for prometheus.',
|
|
addScenarioDataSource: false,
|
|
addScenarioDashBoard: false,
|
|
skipScenario: false,
|
|
scenario: () => {
|
|
e2e.pages.Explore.visit();
|
|
e2e.components.DataSourcePicker.inputV2().should('be.visible').click();
|
|
|
|
cy.contains('gdev-prometheus').scrollIntoView().should('be.visible').click();
|
|
const queryText = 'http_requests_total';
|
|
|
|
e2e.components.QueryField.container().should('be.visible').type(queryText).type('{backspace}');
|
|
|
|
cy.contains(queryText.slice(0, -1)).should('be.visible');
|
|
|
|
e2e.components.QueryField.container().type(e2e.typings.undo());
|
|
|
|
cy.contains(queryText).should('be.visible');
|
|
},
|
|
});
|