diff --git a/cypress/e2e/ui/people/standard.person.profile.spec.js b/cypress/e2e/ui/people/standard.person.profile.spec.js index ddfd56bd18..7fc075333b 100644 --- a/cypress/e2e/ui/people/standard.person.profile.spec.js +++ b/cypress/e2e/ui/people/standard.person.profile.spec.js @@ -34,7 +34,17 @@ context("Person Profile", () => { cy.get("#editWhyCame").click(); cy.url().should("contains", `WhyCameEditor.php?PersonID=${personId}`); + cy.get('tr:nth-child(1) textarea').clear().type('{backspace}'); + cy.get('tr:nth-child(1) textarea').clear().type('I love the lord '); + cy.get('tr:nth-child(2) textarea').clear().type('{backspace}'); + cy.get('tr:nth-child(2) textarea').clear().type('{backspace}'); + cy.get('tr:nth-child(2) textarea').clear().type('the feeling of being included'); + cy.get('tr:nth-child(3) textarea').clear().type('More Youth Meetings'); + cy.get('tr:nth-child(4) textarea').clear().type('The website '); + cy.get('td > .btn-primary').click(); + + cy.url().should('contains', 'WhyCameEditor.php'); + cy.contains('More Youth Meetings'); - // TODO: add editing }); });