diff --git a/cypress/integration/plugins/anomaly-detection-dashboards-plugin/vis_augmenter/augment_vis_saved_object_spec.js b/cypress/integration/plugins/anomaly-detection-dashboards-plugin/vis_augmenter/augment_vis_saved_object_spec.js index 6ad1b4302..1f02b0f90 100644 --- a/cypress/integration/plugins/anomaly-detection-dashboards-plugin/vis_augmenter/augment_vis_saved_object_spec.js +++ b/cypress/integration/plugins/anomaly-detection-dashboards-plugin/vis_augmenter/augment_vis_saved_object_spec.js @@ -102,18 +102,4 @@ describe('AD augment-vis saved objects', () => { .find('.euiTableRow') .contains('No items found'); }); - - it('Deleting the visualization from the edit view deletes the saved object', () => { - cy.visitSavedObjectsManagement(); - filterByObjectType('visualization'); - cy.getElementByTestId('savedObjectsTableAction-inspect').click(); - cy.getElementByTestId('savedObjectEditDelete').click(); - cy.getElementByTestId('confirmModalConfirmButton').click(); - cy.wait(3000); - - filterByObjectType('augment-vis'); - cy.getElementByTestId('savedObjectsTable') - .find('.euiTableRow') - .contains('No items found'); - }); }); diff --git a/cypress/utils/dashboards/vis-augmenter/helpers.js b/cypress/utils/dashboards/vis-augmenter/helpers.js index 5c3ca26b1..4d6993b30 100644 --- a/cypress/utils/dashboards/vis-augmenter/helpers.js +++ b/cypress/utils/dashboards/vis-augmenter/helpers.js @@ -290,9 +290,7 @@ export const bootstrapDashboard = ( miscUtils.visitPage('app/dashboards'); - cy.getElementByTestId('createDashboardPromptButton') - .should('be.visible') - .click(); + cy.getElementByTestId('newItemButton').should('be.visible').click(); // Create several different visualizations visualizationSpecs.forEach((visualizationSpec) => {