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 · Published · Updated

UK Address Form Test Cases and QA Checklist visual guide cover

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.

AreaRepresentative caseExpected behaviour
StructureNo address line 2Submission succeeds when the field is optional
LengthLong building and locality namesNo truncation in storage, labels or exports
CharactersApostrophe, hyphen and diacriticCharacters are preserved safely
PostcodeLower case and missing spaceInput is normalised without user friction
LookupNo result or service timeoutManual entry remains available
CountryNon-UK country selectedUK-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.

  1. Enter a postcode using lower case and irregular spacing.
  2. Select a returned address and confirm every mapped field.
  3. Switch to manual entry and confirm the lookup value is not lost unexpectedly.
  4. Submit while the lookup provider is unavailable.
  5. 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