|
Currently, a User record created through the UI is required to have an email address. In addition, the "preferred contact" field is also required. However, even if you select another type of contact (the choices are email, primary address and text), you are still required to provide an email. Some libraries have patrons that don't have an email address and they would like the field not to be required. However, if the preferred contact field is to be useful in the future for sending notices, it should be extended so that the requirement for data is conditional based on the contact method chosen.
User story statement(s):
As a library administrator
I want to be able to designate the contact type preference of the user
so that notification can be sent.
Scenarios:
- Scenario:
- Given I am creating a user via the UI
- When when I am filling out the "Contact information" accordion and
- When I have chosen "email" as the contact preference
- Then Email address will be a required field.
- Scenario:
- Given I am creating a user in the UI
- When I am filling out the "Contact information" accordion and
- When I have chosen "Text message" as the contact preference
- Then the mobile phone field will become required.
- Scenario:
- Given I am creating a user in the UI
- When I am filling out the "Contact information" accordion and
- When I have chosen "Mail (Primary address) as the contact preference
- Then an address is required that is marked "Primary."
|