2023-09-08 10:51:59 -05:00
|
|
|
import { e2e } from '../utils';
|
2020-09-17 00:35:24 -05:00
|
|
|
|
2023-09-13 07:24:20 -05:00
|
|
|
describe('Solo Route', () => {
|
|
|
|
beforeEach(() => {
|
2023-09-27 05:33:00 -05:00
|
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
2023-09-13 07:24:20 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
it('Can view panels with shared queries in fullsceen', () => {
|
2020-09-17 00:35:24 -05:00
|
|
|
// open Panel Tests - Bar Gauge
|
|
|
|
e2e.pages.SoloPanel.visit('ZqZnVvFZz/datasource-tests-shared-queries?orgId=1&panelId=4');
|
|
|
|
|
2023-09-11 05:20:54 -05:00
|
|
|
cy.get('canvas').should('have.length', 6);
|
2023-09-13 07:24:20 -05:00
|
|
|
});
|
2024-02-11 02:08:47 -06:00
|
|
|
|
|
|
|
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(
|
2024-05-14 05:39:10 -05:00
|
|
|
'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'
|
2024-02-11 02:08:47 -06:00
|
|
|
);
|
|
|
|
|
|
|
|
e2e.components.Panels.Panel.title('server = D, pod = Sod').should('exist');
|
|
|
|
cy.contains('uplot-main-div').should('not.exist');
|
|
|
|
});
|
2020-09-17 00:35:24 -05:00
|
|
|
});
|