Skip to content

Commit

Permalink
added test of why Come of edit a blank person and view it
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudIO committed Feb 23, 2025
1 parent 75ba289 commit 4c3ff2a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cypress/e2e/ui/people/standard.person.profile.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
});

0 comments on commit 4c3ff2a

Please sign in to comment.