mirror of
https://github.com/grafana/grafana.git
synced 2024-12-24 08:00:08 -06:00
9cd7c87b48
* DashboardScene: Fixing major row repeat issues * Fixing edit scope * Use dashboard variableDependendency to notify row repeat behaviors * update scenes lib * Do not repeat if values are the same * Update public/app/features/dashboard-scene/scene/DashboardScene.tsx Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> * Updated scenes * Update * Update * Do not render row actions for repeated rows * Fixed e2e --------- Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
45 lines
1.7 KiB
TypeScript
45 lines
1.7 KiB
TypeScript
import { e2e } from '../utils';
|
|
|
|
describe('Solo Route', () => {
|
|
beforeEach(() => {
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
|
});
|
|
|
|
it('Can view panels with shared queries in fullsceen', () => {
|
|
// open Panel Tests - Bar Gauge
|
|
e2e.pages.SoloPanel.visit('ZqZnVvFZz/datasource-tests-shared-queries?orgId=1&panelId=4');
|
|
|
|
cy.get('canvas').should('have.length', 6);
|
|
});
|
|
|
|
it('Can view solo panel in scenes', () => {
|
|
// open Panel Tests - Graph NG
|
|
e2e.pages.SoloPanel.visit(
|
|
'TkZXxlNG3/panel-tests-graph-ng?orgId=1&from=1699954597665&to=1699956397665&panelId=54&__feature.dashboardSceneSolo=true'
|
|
);
|
|
|
|
e2e.components.Panels.Panel.title('Interpolation: Step before').should('exist');
|
|
cy.contains('uplot-main-div').should('not.exist');
|
|
});
|
|
|
|
it('Can view solo repeated panel in scenes', () => {
|
|
// open Panel Tests - Graph NG
|
|
e2e.pages.SoloPanel.visit(
|
|
'templating-repeating-panels/templating-repeating-panels?orgId=1&from=1699934989607&to=1699956589607&panelId=panel-2-clone-1&__feature.dashboardSceneSolo=true'
|
|
);
|
|
|
|
e2e.components.Panels.Panel.title('server=B').should('exist');
|
|
cy.contains('uplot-main-div').should('not.exist');
|
|
});
|
|
|
|
it('Can view solo in repeaterd row and panel in scenes', () => {
|
|
// open Panel Tests - Graph NG
|
|
e2e.pages.SoloPanel.visit(
|
|
'Repeating-rows-uid/repeating-rows?orgId=1&var-server=A&var-server=B&var-server=D&var-pod=1&var-pod=2&var-pod=3&panelId=panel-2-clone-D-clone-2&__feature.dashboardSceneSolo=true'
|
|
);
|
|
|
|
e2e.components.Panels.Panel.title('server = D, pod = Sod').should('exist');
|
|
cy.contains('uplot-main-div').should('not.exist');
|
|
});
|
|
});
|