integreat-cms icon indicating copy to clipboard operation
integreat-cms copied to clipboard

Add tests for contact form

Open MizukiTemma opened this issue 4 months ago • 0 comments

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


Pull Request Review Guidelines

MizukiTemma avatar Nov 01 '24 17:11 MizukiTemma