From 4f3ab51d69d432edb9fbc27c1742c05ab4030cfa Mon Sep 17 00:00:00 2001 From: Andreas Christou Date: Tue, 28 May 2024 14:09:20 +0100 Subject: [PATCH] AzureMonitor: Fix service selection in E2E tests (#88378) Use selectall to replace text --- e2e/cloud-plugins-suite/azure-monitor.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/cloud-plugins-suite/azure-monitor.spec.ts b/e2e/cloud-plugins-suite/azure-monitor.spec.ts index d58f2f776e7..4168a7d69bd 100644 --- a/e2e/cloud-plugins-suite/azure-monitor.spec.ts +++ b/e2e/cloud-plugins-suite/azure-monitor.spec.ts @@ -193,7 +193,7 @@ describe('Azure monitor datasource', () => { dataSourceName, visitDashboardAtStart: false, queriesForm: () => { - e2eSelectors.queryEditor.header.select().find('input').type('Logs{enter}'); + e2eSelectors.queryEditor.header.select().find('input').type('{selectall}Logs{enter}'); e2eSelectors.queryEditor.resourcePicker.select.button().click(); e2eSelectors.queryEditor.resourcePicker.search .input() @@ -213,7 +213,7 @@ describe('Azure monitor datasource', () => { dataSourceName, visitDashboardAtStart: false, queriesForm: () => { - e2eSelectors.queryEditor.header.select().find('input').type('Azure Resource Graph{enter}'); + e2eSelectors.queryEditor.header.select().find('input').type('{selectall}Azure Resource Graph{enter}'); cy.wait(1000); // Need to wait for code editor to completely load e2eSelectors.queryEditor.argsQueryEditor.subscriptions .input() @@ -232,7 +232,7 @@ describe('Azure monitor datasource', () => { dataSourceName, visitDashboardAtStart: false, queriesForm: () => { - e2eSelectors.queryEditor.header.select().find('input').type('Traces{enter}'); + e2eSelectors.queryEditor.header.select().find('input').type('{selectall}Traces{enter}'); e2eSelectors.queryEditor.resourcePicker.select.button().click(); e2eSelectors.queryEditor.resourcePicker.search .input() @@ -305,7 +305,7 @@ describe('Azure monitor datasource', () => { e2eSelectors.queryEditor.resourcePicker.advanced.region.input().find('input').type('$region'); e2eSelectors.queryEditor.resourcePicker.advanced.resource.input().find('input').type('$resource'); e2eSelectors.queryEditor.resourcePicker.apply.button().click(); - e2eSelectors.queryEditor.metricsQueryEditor.metricName.input().find('input').type('Transactions{enter}'); + e2eSelectors.queryEditor.metricsQueryEditor.metricName.input().find('input').type('Blob Capacity{enter}'); }, timeout: 10000, });