From d19e5ec49f5806a67aecfea13b60851ae3a749a4 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Fri, 19 Jan 2024 11:00:17 +0100 Subject: [PATCH] [v10.3.x] Explore: Re-enable basic e2e test for Explore (#80713) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Explore: Re-enable basic e2e test for Explore (#80617) Re-enable basic test for Explore (cherry picked from commit 322cd74b9c26fac4beca4dec79d7273716ccd301) Co-authored-by: Piotr Jamróz --- e2e/various-suite/explore.spec.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/e2e/various-suite/explore.spec.ts b/e2e/various-suite/explore.spec.ts index 0207aa5d82a..69d74c29e98 100644 --- a/e2e/various-suite/explore.spec.ts +++ b/e2e/various-suite/explore.spec.ts @@ -10,14 +10,6 @@ describe('Explore', () => { e2e.pages.Explore.General.container().should('have.length', 1); e2e.components.RefreshPicker.runButtonV2().should('have.length', 1); - // delete query history queries that would be unrelated - e2e.components.QueryTab.queryHistoryButton().should('be.visible').click(); - cy.get('button[title="Delete query"]').each((button) => { - button.trigger('click'); - }); - cy.get('button[title="Delete query"]').should('not.exist'); - e2e.components.QueryTab.queryHistoryButton().should('be.visible').click(); - e2e.components.DataSource.TestData.QueryTab.scenarioSelectContainer() .scrollIntoView() .should('be.visible') @@ -26,17 +18,5 @@ describe('Explore', () => { }); cy.contains('CSV Metric Values').scrollIntoView().should('be.visible').click(); - - const canvases = cy.get('canvas'); - canvases.should('have.length', 1); - - // Both queries above should have been run and be shown in the query history - e2e.components.QueryTab.queryHistoryButton().should('be.visible').click(); - e2e.components.QueryHistory.queryText().should('have.length', 1).should('contain', 'csv_metric_values'); - - // delete all queries - cy.get('button[title="Delete query"]').each((button) => { - button.trigger('click'); - }); }); });