mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 01:12:09 +08:00

* add more row grouping e2e * refactor dashboard create with dashboard import to speed up tests * add more tests for tabs layout * adjust flaky test
17 lines
588 B
TypeScript
17 lines
588 B
TypeScript
import { e2e } from '../..';
|
|
|
|
export const addPanel = () => {
|
|
e2e.components.DashboardEditPaneSplitter.primaryBody().scrollTo('bottom', { ensureScrollable: false });
|
|
e2e.components.CanvasGridAddActions.addPanel().last().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();
|
|
};
|