refactor: remove unnecessary login and reload calls in ClaimDevelopment tests
This commit is contained in:
parent
c8dafb65e4
commit
99a40dba14
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue