Skip to content

Commit

Permalink
Updated tests for cred-types
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed May 23, 2024
1 parent f3f0cf1 commit a13f587
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/eda/Credentials/credential-type-crud.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ describe('EDA Credentials Type - Create, Edit, Delete', () => {
cy.clickModalButton('Delete credential type');
cy.wait('@deleted').then((deleted) => {
expect(deleted?.response?.statusCode).to.eql(204);
cy.verifyPageTitle('Credential Types');
});
});
});
Expand All @@ -102,11 +101,13 @@ describe('EDA Credentials Type - Create, Edit, Delete', () => {
cy.clickModalButton('Delete credential type');
cy.wait('@deleted').then((deleted) => {
expect(deleted?.response?.statusCode).to.eql(409);
cy.clickModalButton('Close');
});
cy.getEdaCredentialByName(cred.name).then((credential) => {
cy.wrap(credential).should('not.be.undefined');
if (credential) {
cy.deleteEdaCredential(credential);
cy.navigateTo('eda', 'credential-types');
}
});
cy.deleteEdaCredentialType(credtype);
Expand Down Expand Up @@ -135,6 +136,7 @@ describe('EDA Credentials Type - Create, Edit, Delete', () => {
cy.clickButton(/^Save credential type$/);
cy.wait('@edit').then((edit) => {
expect(edit?.response?.statusCode).to.eql(400);
cy.clickButton('Cancel');
});
cy.getEdaCredentialByName(cred.name).then((credential) => {
cy.wrap(credential).should('not.be.undefined');
Expand Down

0 comments on commit a13f587

Please sign in to comment.