@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.
pull/26021/head
Steven Vachon 6 years ago committed by GitHub
parent b06d2cf30f
commit 634d8d60d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/grafana-e2e/src/flows/addPanel.ts

@ -68,6 +68,8 @@ export const addPanel = (config?: Partial<AddPanelConfig>): any =>
.click();
closeOptionsGroup('type');
closeOptions();
queriesForm(fullConfig);
e2e().wait('@chartData');
@ -77,8 +79,6 @@ export const addPanel = (config?: Partial<AddPanelConfig>): 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();

Loading…
Cancel
Save