From 073f46e289e450421c97ef3e75e25cfd9357b79e Mon Sep 17 00:00:00 2001 From: Steven Vachon Date: Fri, 3 Jul 2020 04:22:56 -0400 Subject: [PATCH] @grafana/e2e: close options panel before interacting with the query form (#26036) ... it's logically better, but the real reason is to appease Cypress which was cause a consistent request error for a single plugin (datadog-datasource). An error which could not be reproduced manually. (cherry picked from commit 634d8d60d6e4a10e7400c97ee82ef15b6c298096) --- packages/grafana-e2e/src/flows/addPanel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-e2e/src/flows/addPanel.ts b/packages/grafana-e2e/src/flows/addPanel.ts index 298439c1670..8e4b403ba7d 100644 --- a/packages/grafana-e2e/src/flows/addPanel.ts +++ b/packages/grafana-e2e/src/flows/addPanel.ts @@ -68,6 +68,8 @@ export const addPanel = (config?: Partial): any => .click(); closeOptionsGroup('type'); + closeOptions(); + queriesForm(fullConfig); e2e().wait('@chartData'); @@ -77,8 +79,6 @@ export const addPanel = (config?: Partial): any => //e2e.components.Panels.Panel.containerByTitle(panelTitle).find('.panel-content').contains('No data'); //e2e.components.QueryEditorRow.actionButton('Disable/enable query').click(); - closeOptions(); - e2e() .get('button[title="Apply changes and go back to dashboard"]') .click();