We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe07ca commit 22ff0f4Copy full SHA for 22ff0f4
packages/plugin-e2e/src/models/pages/PanelEditPage.ts
@@ -181,6 +181,9 @@ export class PanelEditPage extends GrafanaPage {
181
});
182
183
try {
184
+ await expect(refreshPanelButton).toBeVisible();
185
+ // if the refreshPanelButton has the text 'Cancel', then wait until it says Refresh otherwise we'll cancel all the ongoing requests
186
+ await expect(refreshPanelButton).toHaveText(/refresh/i, { timeout: 2000 });
187
await refreshPanelButton.click({ timeout: 2000 });
188
} catch (error) {
189
// refresh button may be hidden behind the visualization options
0 commit comments