Settings: Consistent footer actions across edit views (#82048)

This commit is contained in:
Ivan Ortega Alba
2024-02-08 10:50:53 +01:00
committed by GitHub
parent ea96c83a2c
commit 35e96d6b04
8 changed files with 61 additions and 53 deletions

View File

@@ -25,12 +25,14 @@ describe('Variables - Datasource', () => {
e2e.pages.Dashboard.Settings.Variables.Edit.DatasourceVariable.datasourceSelect().within(() => {
cy.get('input').type('Prometheus{enter}');
});
e2e.pages.Dashboard.Settings.Variables.Edit.General.previewOfValuesOption()
.eq(0)
.should('have.text', 'gdev-prometheus');
e2e.pages.Dashboard.Settings.Variables.Edit.General.previewOfValuesOption()
.eq(1)
.should('have.text', 'gdev-slow-prometheus');
e2e.pages.Dashboard.Settings.Variables.Edit.General.previewOfValuesOption().should(
'contain.text',
'gdev-prometheus'
);
e2e.pages.Dashboard.Settings.Variables.Edit.General.previewOfValuesOption().should(
'contain.text',
'gdev-slow-prometheus'
);
// Navigate back to the homepage and change the selected variable value
e2e.pages.Dashboard.Settings.Variables.Edit.General.submitButton().click();