Address form quality assurance
UK Address Form Test Cases and QA Checklist
A useful address-form test suite covers more than one happy-path street address. It exercises structural variation, human input, lookup failure, accessibility, downstream exports and safeguards around external services.
By PostcodeLab · Published · Updated
Download the UK Address Form QA Fixture Pack
Use the PostcodeLab UK Address Form QA Fixture Pack v1.0.0 to exercise form structure, user input, lookup recovery, accessibility and integration boundaries with deterministic scenarios instead of relying on a live random endpoint.
Latest compatible release: JSON fixture pack
Pin v1.0.0: versioned JSON · versioned JSON Schema · integrity manifest
Schema alias: major-version JSON Schema
Version and licence: v1.0.0, published 12 August 2026, licensed under CC BY 4.0. Attribute the “PostcodeLab UK Address Form QA Fixture Pack” when redistributing it.
Important limits: the pack contains constructed test scenarios and labelled placeholders, not a directory of real addresses or people. It does not prove that a postcode or address exists, is current, is deliverable, or belongs to an identity. Do not use it for production fulfilment, identity checks, eligibility or account recovery.
Start with a risk-based test matrix
Map each field and integration to the failure it could cause. A truncated building name may break delivery labels, a rigid county field may block valid submissions, and a lookup-only design may exclude new or unusual addresses. Prioritise the cases that affect completion, accessibility or irreversible downstream actions.
| Area | Representative case | Expected behaviour |
|---|---|---|
| Structure | No address line 2 | Submission succeeds when the field is optional |
| Length | Long building and locality names | No truncation in storage, labels or exports |
| Characters | Apostrophe, hyphen and diacritic | Characters are preserved safely |
| Postcode | Lower case and missing space | Input is normalised without user friction |
| Lookup | No result or service timeout | Manual entry remains available |
| Country | Non-UK country selected | UK-only rules are not applied blindly |
Exercise UK address variation
- Flat or unit before a numbered building.
- Named premises with no street number.
- Dependent locality and post town that differ from the administrative area.
- Optional county omitted, supplied or returned by a legacy integration.
- Short and long postcodes across all six standard structural formats.
- Northern Ireland, Scotland, Wales and England examples where regional assumptions differ.
Do not force every address into a US-style city, state and ZIP schema. Store the postcode separately, make the second address line optional and require a county only when a documented downstream system genuinely needs it.
Test lookup and manual-entry recovery
Address lookup is a convenience rather than the only route through the form. Simulate an empty result, slow response, server error, malformed provider payload, duplicate suggestions and a user correcting the selected address.
- Enter a postcode using lower case and irregular spacing.
- Select a returned address and confirm every mapped field.
- Switch to manual entry and confirm the lookup value is not lost unexpectedly.
- Submit while the lookup provider is unavailable.
- Return to the form and confirm entered values remain editable.
The address lookup and autocomplete guide expands this flow into provider, accessibility, data-contract and operational requirements.
Cover accessibility and mobile behaviour
- Use a keyboard to reach, operate and leave every lookup result and control.
- Check labels, autocomplete tokens, instructions and errors with a screen reader.
- Ensure the error summary links to the affected input and errors are not communicated by colour alone.
- Test at 200% zoom and narrow mobile widths without horizontal page scrolling.
- Confirm virtual keyboards do not hide the active input or submit action.
- Preserve focus predictably after lookup, validation and dynamic updates.
Verify integrations and data safety
Follow the address through the API request, database, CRM sandbox, label, PDF, analytics event and deletion flow. Confirm escaping does not corrupt apostrophes, logs do not collect unnecessary full addresses, and test submissions cannot trigger real mail, payment, SMS or fulfilment.
Use deterministic fixtures for repeatable automated assertions and separate exploratory records for layout or geocoding checks. Never infer that a synthetic identity belongs to a real-world location, and discard generated combinations when the test is complete.
Run the fixture pack with Playwright or Cypress
Pin the versioned JSON URL in CI. Map selectors to your own form and assert each scenario's expected outcome; do not treat the fixture file as application code.
Playwright example
const response = await request.get('/downloads/uk-address-form-qa-fixtures-v1.0.0.json');
const pack = await response.json();
for (const scenario of pack.cases) {
test(scenario.id, async ({ page }) => {
await page.goto('/checkout/address');
// Fill scenario.input, submit, then assert scenario.assertions.
});
}
Cypress example
cy.request('/downloads/uk-address-form-qa-fixtures-v1.0.0.json').then(({ body: pack }) => {
pack.cases.forEach((scenario) => {
cy.visit('/checkout/address');
// Fill scenario.input, submit, then assert scenario.assertions.
});
});
Adapt field names and selectors to your product. Keep lookup failures, manual-entry fallback, keyboard focus and downstream side-effect prevention as explicit assertions. The UK address format guide explains the field model, while the postcode validation fixture suite covers postcode-only syntax cases.
Official references
Related developer guides
UK Address Format: Correct Order and Examples
See the correct UK address format for houses, flats and named buildings, with postcode placement and line-by-line examples for UK and international use.
Read guideUK Address Lookup and Autocomplete Guide
Design a resilient UK address lookup and autocomplete flow with postcode search, editable results, manual entry, accessibility and provider safeguards.
Read guideUK Test Data Guide for QA and Development
Plan safer UK test data for QA and development with environment separation, data minimisation, retention controls, logging safeguards and review steps.
Read guideUK Postcode Validation Test Suite
Download 40 versioned UK postcode validation test cases in JSON or CSV, with expected results, JSON Schema, SHA-256 manifest and automation examples.
Read guide