mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* remove cy. wrapping as e2e(). * make trace-view-scrolling more stable and remove waits * improve stability more
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { e2e } from '../utils';
|
|
|
|
e2e.scenario({
|
|
describeName: 'Select focus/unfocus tests',
|
|
itName: 'Tests select focus/unfocus scenarios',
|
|
addScenarioDataSource: false,
|
|
addScenarioDashBoard: false,
|
|
skipScenario: false,
|
|
scenario: () => {
|
|
e2e.flows.openDashboard({ uid: '5SdHCadmz' });
|
|
e2e.components.PageToolbar.item('Dashboard settings').click();
|
|
|
|
e2e.components.FolderPicker.containerV2()
|
|
.should('be.visible')
|
|
.within(() => {
|
|
cy.get('#dashboard-folder-input').should('be.visible').click();
|
|
});
|
|
|
|
e2e.components.Select.option().should('be.visible').first().click();
|
|
|
|
e2e.components.FolderPicker.containerV2()
|
|
.should('be.visible')
|
|
.within(() => {
|
|
cy.get('#dashboard-folder-input').should('exist').should('have.focus');
|
|
});
|
|
|
|
e2e.pages.Dashboard.Settings.General.title().click();
|
|
|
|
e2e.components.FolderPicker.containerV2()
|
|
.should('be.visible')
|
|
.within(() => {
|
|
cy.get('#dashboard-folder-input').should('exist').should('not.have.focus');
|
|
});
|
|
},
|
|
});
|