Skip to content

fix: ENG-3901 Adds additional postcode validation#437

Draft
curlyfriesplease wants to merge 6 commits intomasterfrom
postcode-validation
Draft

fix: ENG-3901 Adds additional postcode validation#437
curlyfriesplease wants to merge 6 commits intomasterfrom
postcode-validation

Conversation

@curlyfriesplease
Copy link
Contributor

@curlyfriesplease curlyfriesplease commented Mar 24, 2025

ENG-3901

On Friday we found there's an inconsistency between the regex used by our storybook's PostcodeLookup component, and the backend of serverless-giftaid.

We found that the backend was stricter than storybook in its validation of the outcode (the first half of a postcode) - the postcode cro 7tp was being allowed by the frontend, but rejected by the backend.

The goal here is to override the regex validation used here in the frontend, so that the FE & BE are sticking to the same rule.

To test it works, we should NOT be able to use the above postcode in either form (the main page, or the /update page)

@curlyfriesplease curlyfriesplease changed the title Adds additional postcode validation fix: ENG-3901 Adds additional postcode validation Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants