diff --git a/test/cypress/integration/claim/claimDevelopment.spec.js b/test/cypress/integration/claim/claimDevelopment.spec.js index eb39f340a..df9d09a49 100755 --- a/test/cypress/integration/claim/claimDevelopment.spec.js +++ b/test/cypress/integration/claim/claimDevelopment.spec.js @@ -3,6 +3,8 @@ describe('ClaimDevelopment', () => { const claimId = 1; const firstLineReason = 'tbody > :nth-child(1) > :nth-child(2)'; const thirdRow = 'tbody > :nth-child(3)'; + const lastReason = 'Incompetencia'; + const newReason = 'Calor'; beforeEach(() => { cy.viewport(1920, 1080); @@ -14,22 +16,22 @@ describe('ClaimDevelopment', () => { }); it('should reset line', () => { - cy.selectOption(firstLineReason, 'Novato'); + cy.selectOption(firstLineReason, newReason); cy.resetCard(); - cy.getValue(firstLineReason).should('equal', 'Prisas'); + cy.getValue(firstLineReason).should('equal', lastReason); }); it('should edit line', () => { - cy.selectOption(firstLineReason, 'Novato'); + cy.selectOption(firstLineReason, newReason); cy.saveCard(); cy.login('developer'); cy.visit(`/#/claim/${claimId}/development`); - cy.getValue(firstLineReason).should('equal', 'Novato'); + cy.getValue(firstLineReason).should('equal', newReason); //Restart data - cy.selectOption(firstLineReason, 'Prisas'); + cy.selectOption(firstLineReason, lastReason); cy.saveCard(); }); @@ -42,7 +44,7 @@ describe('ClaimDevelopment', () => { const rowData = [ false, - 'Novato', + newReason, 'Roces', 'Compradores', 'administrativeNick',