Cancelling or Changing a Life in the UK Test Booking
Everything turns on one deadline: 72 hours before your test.
More than 72 hours before
You can change the time and date free of charge up to 3 days (72 hours) before your test (official FAQ). Cancel at least 3 days ahead and GOV.UK says you get a refund (GOV.UK refunds).
Sources: Official booking service: FAQ; GOV.UK: cancellations, refunds and complaints
Inside 72 hours
GOV.UK says you will not get a refund if you cancel or change inside 3 days, and lists other cases with no refund, such as bringing the wrong ID, arriving late or refusing to have your photo taken (GOV.UK refunds).
If the centre cancels
If the test centre cancels your test, GOV.UK explains how to ask for a refund (GOV.UK refunds). Keep your booking email.