From c13e8ff30bcf70fd8f23cfc56cfe493cf59d9682 Mon Sep 17 00:00:00 2001 From: Adam Tackett Date: Mon, 28 Oct 2024 15:48:16 -0700 Subject: [PATCH] test removing delete Signed-off-by: Adam Tackett --- .../6_notebooks.spec.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js b/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js index fafc3a495..650c3b513 100644 --- a/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js +++ b/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js @@ -116,23 +116,11 @@ describe('Test reporting integration if the plugin is installed', () => { cy.wrap({ name: notebookName }).as('notebook'); }); - afterEach(() => { - cy.get('@notebook').then((notebook) => { - deleteNotebook(notebook.name); - }); - }); - it('Create in-context PDF report from notebook', () => { cy.get('#reportingActionsButton').click(); cy.get('button.euiContextMenuItem:nth-child(1)') .contains('Download PDF') .click(); - - //Stub window.open to prevent new tab - cy.window().then((win) => { - cy.stub(win, 'open').as('windowOpen'); - }); - cy.get('body').contains('Please continue report generation in the new tab'); }); @@ -141,12 +129,6 @@ describe('Test reporting integration if the plugin is installed', () => { cy.get('button.euiContextMenuItem:nth-child(2)') .contains('Download PNG') .click(); - - //Stub window.open to prevent new tab - cy.window().then((win) => { - cy.stub(win, 'open').as('windowOpen'); - }); - cy.get('body').contains('Please continue report generation in the new tab'); });