DSPicker: Use new DS picker everywhere in Grafana (#70609)

This commit is contained in:
Ivan Ortega Alba
2023-07-26 18:40:51 +02:00
committed by GitHub
parent 98cb3ce3b6
commit 8415dd40d7
25 changed files with 78 additions and 60 deletions

View File

@@ -38,10 +38,9 @@ describe('Variables - Query - Add variable', () => {
e2e().get('label').contains('Show on dashboard').should('be.visible');
e2e.pages.Dashboard.Settings.Variables.Edit.QueryVariable.queryOptionsDataSourceSelect()
.should('be.visible')
.within((select) => {
e2e.components.Select.singleValue().should('have.text', 'gdev-testdata');
});
.get('input[placeholder="gdev-testdata"]')
.scrollIntoView()
.should('be.visible');
e2e().get('label').contains('Refresh').scrollIntoView().should('be.visible');
e2e().get('label').contains('On dashboard load').scrollIntoView().should('be.visible');
@@ -89,7 +88,7 @@ describe('Variables - Query - Add variable', () => {
e2e().get('[placeholder="Descriptive text"]').should('be.visible').clear().type('a description');
e2e.components.DataSourcePicker.inputV2().should('be.visible').type('gdev-testdata{enter}');
e2e.components.DataSourcePicker.container().should('be.visible').type('gdev-testdata{enter}');
e2e.pages.Dashboard.Settings.Variables.Edit.QueryVariable.queryOptionsQueryInput()
.should('be.visible')
@@ -137,7 +136,7 @@ describe('Variables - Query - Add variable', () => {
e2e().get('[placeholder="Descriptive text"]').should('be.visible').clear().type('a description');
e2e.components.DataSourcePicker.inputV2().type('gdev-testdata{enter}');
e2e.components.DataSourcePicker.container().type('gdev-testdata{enter}');
e2e.pages.Dashboard.Settings.Variables.Edit.QueryVariable.queryOptionsQueryInput()
.should('be.visible')