[v11.2.x] ImportDashboard: adjust flaky e2e test (#92713)

ImportDashboard: adjust flaky e2e test (#92705)

adjust test to wait for monaco editor

(cherry picked from commit c4d804a964)

Co-authored-by: Sergej-Vlasov <37613182+Sergej-Vlasov@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-08-30 10:28:01 +03:00
committed by GitHub
co-authored by Sergej-Vlasov
parent 121f02ab5c
commit b20245e270
+3 -1
View File
@@ -51,7 +51,9 @@ export const importDashboard = (dashboardToImport: Dashboard, queryTimeout?: num
e2e.components.Panels.Panel.menu(panel.title).click({ force: true }); // force click because menu is hidden and show on hover
e2e.components.Panels.Panel.menuItems('Inspect').should('be.visible').click();
e2e.components.Tab.title('JSON').should('be.visible').click();
e2e.components.PanelInspector.Json.content().should('be.visible').contains('Panel JSON').click({ force: true });
e2e.components.PanelInspector.Json.content().should('be.visible');
e2e.components.ReactMonacoEditor.editorLazy().should('be.visible');
cy.contains('Panel JSON').click({ force: true });
e2e.components.Select.option().should('be.visible').contains('Panel data').click();
// ensures that panel has loaded without knowingly hitting an error