From 05682bb17c61ba0371e0b51b3266ef81e54b2318 Mon Sep 17 00:00:00 2001 From: Shaiah Emigh-Doyle Date: Mon, 8 Jan 2024 15:44:33 -0500 Subject: [PATCH 1/2] add a quick line to confirm delete success --- cypress/e2e/hub/collections.cy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/e2e/hub/collections.cy.ts b/cypress/e2e/hub/collections.cy.ts index c77199e7cb..10a588bf08 100644 --- a/cypress/e2e/hub/collections.cy.ts +++ b/cypress/e2e/hub/collections.cy.ts @@ -54,6 +54,7 @@ describe('Collections- List View', () => { cy.clickTableRowKebabAction(thisCollectionName, 'delete-entire-collection-from-system'); cy.get('[data-ouia-component-id="confirm"]').click(); cy.get('[data-ouia-component-id="submit"]').click(); + cy.get('[data-cy="state-column-cell]').should('contain', 'Success'); cy.clickButton(/^Close$/); cy.clickButton(/^Clear all filters$/); }); From fececa89ae6ba86eab90e37153423fdbf0fd9ebc Mon Sep 17 00:00:00 2001 From: Shaiah Emigh-Doyle Date: Tue, 9 Jan 2024 10:34:56 -0500 Subject: [PATCH 2/2] check list view for deleted collection --- cypress/e2e/hub/collections.cy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/hub/collections.cy.ts b/cypress/e2e/hub/collections.cy.ts index 10a588bf08..bf1d98a934 100644 --- a/cypress/e2e/hub/collections.cy.ts +++ b/cypress/e2e/hub/collections.cy.ts @@ -54,8 +54,9 @@ describe('Collections- List View', () => { cy.clickTableRowKebabAction(thisCollectionName, 'delete-entire-collection-from-system'); cy.get('[data-ouia-component-id="confirm"]').click(); cy.get('[data-ouia-component-id="submit"]').click(); - cy.get('[data-cy="state-column-cell]').should('contain', 'Success'); + cy.contains(/^Success$/); cy.clickButton(/^Close$/); + cy.contains(thisCollectionName).should('not.exist'); cy.clickButton(/^Clear all filters$/); }); });