When a user visits certain cancellation pages, if they dont have a draft cancellation already they should be redirected to the deal cancellation page. This should only happen if they use URL navigation, or browser history, rather than clicking buttons available on screen.
Resolution :heavy_check_mark:
Check the deal cancellation exists when visiting:
bank request date
effective from date page
cancel cancellation page
check details page
The reason for cancelling page is the start of the journey so does not need a draft cancellation to exist
Update unit tests
Misc ➕
Use toEqual not toBe in cancellation unit tests
Create new aRequestSession mock data helper and use in cancellation unit tests
Introduction :pencil2:
When a user visits certain cancellation pages, if they dont have a draft cancellation already they should be redirected to the deal cancellation page. This should only happen if they use URL navigation, or browser history, rather than clicking buttons available on screen.
Resolution :heavy_check_mark:
Misc ➕
toEqual
nottoBe
in cancellation unit testsaRequestSession
mock data helper and use in cancellation unit tests