Skip to content

Commit b20326a

Browse files
authored
Resiliency enhancement to clusterStorageCreation test (opendatahub-io#3983)
* Resiliency enhancement to clusterStorageCreation test * Added force click to the deletion also
1 parent 9feb01a commit b20326a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/src/__tests__/cypress/cypress/tests/e2e/dataScienceProjects/clusterStorage/testClusterStorageCreation.cy.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ describe('Verify Cluster Storage - Creating, Editing and Deleting', () => {
8787
addClusterStorageModal.findDescriptionInput().type(pvStorageDescription);
8888
const numericPvcSize = dashboardConfig.notebookController.pvcSize.replace(/\D/g, '');
8989
addClusterStorageModal.findPVStorageSizeValue().should('have.value', numericPvcSize);
90-
addClusterStorageModal.findSubmitButton().click();
91-
clusterStorage.getClusterStorageRow(pvStorageName);
90+
addClusterStorageModal.findSubmitButton().click({ force: true });
91+
clusterStorage.getClusterStorageRow(pvStorageName).find().should('exist');
9292

9393
// Edit the Cluster Storage, amend the name and update
9494
cy.step('Edit the Cluster Storage and verify edits are successful');
9595
clusterStorage.findKebabToggle().click();
9696
clusterStorage.getClusterStorageRow(pvStorageName).findKebabAction('Edit storage').click();
9797
updateClusterStorageModal.findNameInput().clear();
9898
updateClusterStorageModal.findNameInput().type(pvStorageNameEdited);
99-
updateClusterStorageModal.findSubmitButton().click();
100-
clusterStorage.getClusterStorageRow(pvStorageNameEdited);
99+
updateClusterStorageModal.findSubmitButton().click({ force: true });
100+
clusterStorage.getClusterStorageRow(pvStorageNameEdited).find().should('exist');
101101

102102
// Delete the Cluster Storage and confirm that the deletion was successful
103103
cy.step('Delete the Cluster Storage and verify deletion');
@@ -107,7 +107,7 @@ describe('Verify Cluster Storage - Creating, Editing and Deleting', () => {
107107
clusterStorage
108108
.getClusterStorageRow(pvStorageNameEdited)
109109
.findKebabAction('Delete storage')
110-
.click();
110+
.click({ force: true });
111111
deleteModal.shouldBeOpen();
112112
deleteModal.findInput().type(pvStorageNameEdited);
113113
deleteModal.findSubmitButton().should('be.enabled').click();

0 commit comments

Comments
 (0)