Dashboards/E2E: Add tests for grouping and ungrouping into rows and tabs (#105315)

* add e2e for grouping into tabs and rows

* enable kubernetesDashboards feature toggle for e2e tests

* remove unnecessary kubernetesDashboard feature flag enablement
This commit is contained in:
Sergej-Vlasov
2025-05-13 13:58:09 +01:00
committed by GitHub
parent 7da1c9073e
commit 012bfa29be
7 changed files with 209 additions and 4 deletions
+11 -1
View File
@@ -1,6 +1,16 @@
import { e2e } from '../..';
export const addPanel = () => {
e2e.components.DashboardEditPaneSplitter.primaryBody().scrollTo('bottom');
e2e.components.DashboardEditPaneSplitter.primaryBody().scrollTo('bottom', { ensureScrollable: false });
e2e.components.CanvasGridAddActions.addPanel().should('be.visible').click();
};
export const addFirstPanel = () => {
// add visualization
e2e.pages.AddDashboard.itemButton('Create new panel button').should('be.visible').click();
// close the data source picker modal
cy.get('[aria-label="Close"]').click({ force: true });
e2e.components.NavToolbar.editDashboard.backToDashboardButton().click();
};