Skip to content

Commit

Permalink
Fix bug of non-empty dashboard; remove unnecessary test
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
  • Loading branch information
ohltyler committed Jul 12, 2023
1 parent 46ed708 commit 80be43b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
4 changes: 1 addition & 3 deletions cypress/utils/dashboards/vis-augmenter/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 80be43b

Please sign in to comment.