mirror of
https://github.com/grafana/grafana.git
synced 2024-12-24 08:00:08 -06:00
7bca69849f
* Mark Scenes feature toggles as GA * Move old arch e2e to a new folder * Run E2E on scenes by default * Upgrade e2e-selectors to ensure the tests in Playwright works
29 lines
1.4 KiB
TypeScript
29 lines
1.4 KiB
TypeScript
import { e2e } from '../utils';
|
|
|
|
describe('Panel edit tests - transformations', () => {
|
|
beforeEach(() => {
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
|
});
|
|
|
|
it('Tests transformations editor', () => {
|
|
e2e.flows.openDashboard({ uid: 'TkZXxlNG3', queryParams: { editPanel: 47 } });
|
|
|
|
e2e.components.Tab.title('Transformations').should('be.visible').click();
|
|
e2e.components.Transforms.addTransformationButton().scrollIntoView().should('be.visible').click();
|
|
e2e.components.TransformTab.newTransform('Reduce').scrollIntoView().should('be.visible').click();
|
|
e2e.components.Transforms.Reduce.calculationsLabel().scrollIntoView().should('be.visible');
|
|
e2e.components.Transforms.Reduce.modeLabel().should('be.visible');
|
|
});
|
|
|
|
it('Tests case where transformations can be disabled and not clear out panel data', () => {
|
|
e2e.flows.openDashboard({ uid: 'TkZXxlNG3', queryParams: { editPanel: 47 } });
|
|
|
|
e2e.components.Tab.title('Transformations').should('be.visible').click();
|
|
e2e.components.Transforms.addTransformationButton().scrollIntoView().should('be.visible').click();
|
|
e2e.components.TransformTab.newTransform('Reduce').scrollIntoView().should('be.visible').click();
|
|
e2e.components.Transforms.disableTransformationButton().should('be.visible').click();
|
|
|
|
e2e.components.Panels.Panel.PanelDataErrorMessage().should('not.exist');
|
|
});
|
|
});
|