Make address validation configurable per address field, per country
Current problem: Canadian postal codes need to be in a specific format for upload to our distribution third party. As we do not have validation currently in place within Limio, we receive postal codes which fail and need to manually correct them. Volumes are low per week (<50) and must be fixed manually. If postcodes aren't fixed, the whole Canada file fails and all Canada copies could be delayed.
Feature request: The aim of this is to introduce postcode validation both at acquisition and delivery address entry/update. We were trying to use this documentation to configure, however it only allows you to implement validation rules across the whole country address form, not within specific address fields (like the post code). We would like to request this level of granularity as a new feature.ย
Acceptance Criteria
AC1
-
Given I am subscribing to a Canadian Offer online
-
And that offer is for a Digital + Print product
-
And the Delivery Address postal code is in the format A1A 1A1 where A is any letter from A-Z and 1 is any number from 0-9
-
And there is a single space between the first three and last three characters
-
And there are no further spaces
-
Then the postal code will be accepted
AC2
-
Given I am subscribing for a Canadian Offer online
-
And that offer is for a Digital
-
And the Address postal code is in the format A1A 1A1 where A is any letter from A-Z and 1 is any number from 0-9
-
And there is a single space space between the first three and last thre characters
-
And there are no further spaces
-
Then the postal code will be accepted
AC3
-
Given I have a Digital + Print subscription
-
And I attempt to update the delivery address in MMA
-
And the Delivery Address postal code is in the format A1A 1A1 where A is any letter from A-Z and 1 is any number from 0-9
-
And there is a single space space between the first three and last three characters
-
And there are no further spaces
-
Then the postal code will be accepted
AC4
-
Tests in AC1-3 will all fail if there are any spaces in addition to the single space between the first three and and last three characters OR if the postal code is not in the format A1A 1A1 where A is any letter from A-Z and 1 is any number from 0-9
-
An error message will be shown stating โPlease provide a post code in the format A1A 1A1 and with no additional spacesโ
AC5
-
For all scenarios in AC1-3 no countries other than Canada will be affected, and existing post code validation (or lack thereof) will remain in place
ย
Please sign in to leave a comment.
Comments
0 comments