grafana/e2e/dashboards-suite/dashboard-keybindings.spec.ts
Ivan Ortega Alba 7bca69849f
Dashboards: Enable scenes by default (#93818)
* 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
2024-09-30 10:49:02 +01:00

25 lines
1.1 KiB
TypeScript

import { e2e } from '../utils';
describe('Dashboard keybindings', () => {
beforeEach(() => {
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
});
it('should collapse and expand all rows', () => {
e2e.flows.openDashboard({ uid: 'Repeating-rows-uid/repeating-rows' });
e2e.components.Panels.Panel.content().should('have.length', 5);
e2e.components.Panels.Panel.title('server = A, pod = Bob').should('be.visible');
e2e.components.Panels.Panel.title('server = B, pod = Bob').should('be.visible');
cy.get('body').type('d').type('{shift}c');
e2e.components.Panels.Panel.content().should('have.length', 0);
e2e.components.Panels.Panel.title('server = A, pod = Bob').should('not.exist');
e2e.components.Panels.Panel.title('server = B, pod = Bob').should('not.exist');
cy.get('body').type('d').type('{shift}e');
e2e.components.Panels.Panel.content().should('have.length', 6);
e2e.components.Panels.Panel.title('server = A, pod = Bob').should('be.visible');
e2e.components.Panels.Panel.title('server = B, pod = Bob').should('be.visible');
});
});