2023-09-08 10:51:59 -05:00
|
|
|
import { e2e } from '../utils';
|
2020-04-29 08:02:09 -05:00
|
|
|
|
2023-09-13 07:24:20 -05:00
|
|
|
describe('Select focus/unfocus tests', () => {
|
|
|
|
beforeEach(() => {
|
2023-09-27 05:33:00 -05:00
|
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
2023-09-13 07:24:20 -05:00
|
|
|
});
|
|
|
|
|
2024-03-22 08:13:43 -05:00
|
|
|
it.skip('Tests select focus/unfocus scenarios', () => {
|
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(() => {
|
2023-09-11 05:20:54 -05:00
|
|
|
cy.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(() => {
|
2023-09-11 05:20:54 -05:00
|
|
|
cy.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(() => {
|
2023-09-11 05:20:54 -05:00
|
|
|
cy.get('#dashboard-folder-input').should('exist').should('not.have.focus');
|
2020-04-29 08:02:09 -05:00
|
|
|
});
|
2023-09-13 07:24:20 -05:00
|
|
|
});
|
2020-04-29 08:02:09 -05:00
|
|
|
});
|