2020-04-29 08:02:09 -05:00
|
|
|
import { e2e } from '@grafana/e2e';
|
|
|
|
|
|
|
|
e2e.scenario({
|
|
|
|
describeName: 'Select focus/unfocus tests',
|
|
|
|
itName: 'Tests select focus/unfocus scenarios',
|
|
|
|
addScenarioDataSource: false,
|
|
|
|
addScenarioDashBoard: false,
|
|
|
|
skipScenario: false,
|
|
|
|
scenario: () => {
|
2020-06-26 12:33:05 -05:00
|
|
|
e2e.flows.openDashboard({ uid: '5SdHCadmz' });
|
2021-01-27 08:02:04 -06:00
|
|
|
e2e.components.PageToolbar.item('Dashboard settings').click();
|
2020-04-29 08:02:09 -05:00
|
|
|
|
2021-11-17 07:45:45 -06:00
|
|
|
e2e.components.FolderPicker.containerV2()
|
2020-04-29 08:02:09 -05:00
|
|
|
.should('be.visible')
|
|
|
|
.within(() => {
|
2021-10-18 07:51:26 -05:00
|
|
|
e2e().get('#dashboard-folder-input').should('be.visible').click();
|
2021-07-14 08:04:23 -05:00
|
|
|
});
|
2020-04-29 08:02:09 -05:00
|
|
|
|
2021-07-14 08:04:23 -05:00
|
|
|
e2e.components.Select.option().should('be.visible').first().click();
|
2020-04-29 08:02:09 -05:00
|
|
|
|
2021-11-17 07:45:45 -06:00
|
|
|
e2e.components.FolderPicker.containerV2()
|
2021-07-14 08:04:23 -05:00
|
|
|
.should('be.visible')
|
|
|
|
.within(() => {
|
2021-10-18 07:51:26 -05:00
|
|
|
e2e().get('#dashboard-folder-input').should('exist').should('have.focus');
|
2020-04-29 08:02:09 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
e2e.pages.Dashboard.Settings.General.title().click();
|
|
|
|
|
2021-11-17 07:45:45 -06:00
|
|
|
e2e.components.FolderPicker.containerV2()
|
2020-04-29 08:02:09 -05:00
|
|
|
.should('be.visible')
|
|
|
|
.within(() => {
|
2021-10-18 07:51:26 -05:00
|
|
|
e2e().get('#dashboard-folder-input').should('exist').should('not.have.focus');
|
2020-04-29 08:02:09 -05:00
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|