mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 08:47:12 -06:00
26 lines
877 B
TypeScript
26 lines
877 B
TypeScript
import { e2e } from '@grafana/e2e';
|
|
|
|
import testDashboard from '../dashboards/TestDashboard.json';
|
|
|
|
e2e.scenario({
|
|
describeName: 'Dashboard search',
|
|
itName: 'Basic folder view test',
|
|
addScenarioDataSource: false,
|
|
addScenarioDashBoard: false,
|
|
skipScenario: false,
|
|
scenario: () => {
|
|
e2e.flows.importDashboard(testDashboard, 1000, true);
|
|
|
|
e2e.pages.Search.FolderView.visit();
|
|
|
|
// folder view is collapsed - verify its content does not exist
|
|
e2e.components.Search.folderContent('General').should('not.exist');
|
|
e2e.components.Search.dashboardItem('E2E Test - Dashboard Search').should('not.exist');
|
|
|
|
e2e.components.Search.folderHeader('General').click({ force: true });
|
|
|
|
e2e.components.Search.folderContent('General').should('be.visible');
|
|
e2e.components.Search.dashboardItem('E2E Test - Import Dashboard').should('be.visible');
|
|
},
|
|
});
|