Commit d9320e37 by Steven Vachon Committed by GitHub

@grafana/e2e: avoid query data flakiness (#27511)

parent ee91fc36
...@@ -127,9 +127,15 @@ export const configurePanel = (config: PartialAddPanelConfig | PartialEditPanelC ...@@ -127,9 +127,15 @@ export const configurePanel = (config: PartialAddPanelConfig | PartialEditPanelC
// @todo instead wait for '@pluginModule' // @todo instead wait for '@pluginModule'
e2e().wait(2000); e2e().wait(2000);
if (!isExplore) {
// Avoid cache flakiness (where @chartData isn't requested)
e2e()
.get('.refresh-picker-buttons .btn')
.first()
.click({ force: true });
e2e().wait('@chartData'); e2e().wait('@chartData');
if (!isExplore) {
// `panelTitle` is needed to edit the panel, and unlikely to have its value changed at that point // `panelTitle` is needed to edit the panel, and unlikely to have its value changed at that point
const changeTitle = panelTitle && !isEdit; const changeTitle = panelTitle && !isEdit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment