refactor: remove unnecessary login and reload calls in ClaimDevelopment tests
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-test Something is wrong with the build of this commit Details

This commit is contained in:
Alex Moreno 2025-03-18 08:12:31 +01:00
parent c8dafb65e4
commit 99a40dba14
1 changed files with 2 additions and 6 deletions

View File

@ -23,7 +23,6 @@ describe('ClaimDevelopment', () => {
cy.selectOption(firstLineReason, newReason);
cy.saveCard();
cy.login('developer');
cy.visit(`/#/claim/${claimId}/development`);
cy.getValue(firstLineReason).should('equal', newReason);
@ -49,12 +48,9 @@ describe('ClaimDevelopment', () => {
cy.fillRow(thirdRow, rowData);
cy.saveCard();
cy.login('developer');
cy.visit(`/#/claim/${claimId}/development`);
cy.validateRow(thirdRow, rowData);
cy.reload();
cy.visit(`/#/claim/${claimId}/development`);
cy.validateRow(thirdRow, rowData);
//remove row
@ -63,7 +59,7 @@ describe('ClaimDevelopment', () => {
cy.clickConfirm();
cy.get(thirdRow).should('not.exist');
cy.reload();
cy.visit(`/#/claim/${claimId}/development`);
cy.get(thirdRow).should('not.exist');
});
});