integreat-cms
integreat-cms copied to clipboard
Add tests for contact form
Short description
This PR adds tests for the features introduced by #3034
Proposed changes
Test following cases
- A contact is successfully created
- An existing contact is successfully updated
- A contact cannot be created if no POI is selected
- A contact cannot be created with all the fields empty
- A contact cannot be created without title and name if a primary contact already exists for the selected POI
Comment if you come up with other cases that need to be tested 😸
Side effects
- Reduced risk of bugs in future.
Resolved issues
Fixes: #3013