You cancel a seat on a train to Galway. Why might it reappear when you reopen the app?
You cancel a seat on a train to Galway. The app confirms the cancellation. Later, you reopen it and the booking is back. How could the booking and cancellation features pass their own tests, yet the app still get this wrong?
A unit test can check that a small piece of code calculates the new seat count. A function test can check that the cancellation feature confirms a valid request. Those passes tell you about the particular cases each test covered.
Use a test account and a test database in a setup like the live one. Start with a known seat count and no other users changing it. Book a seat, then cancel and wait for confirmation. Fully close the app, relaunch with the same account and check both screens.
The test app says your booking is cancelled. You need to find out whether the change survives closing the app and starting it again. Which action actually tests that requirement? Pick one.
When you test the complete app against a requirement in a realistic setup, you're doing a system test. This journey checks persistence: the cancellation should survive a restart. It also checks that the booking list and seat availability agree.
Start with six free seats and no active bookings. You book one seat and see five free seats and one active booking. After you cancel, you see six free and none active. Expect those values after reopening too. You see six and zero again, so this run passes.
You start with eight free seats and no active bookings. You book one, cancel it, then close and reopen the app. Now you see seven free seats and one active booking. How should you record this result? Pick one.
It's tempting to treat separate passes as proof and stop at the cancellation message. Those tests cover their own cases. The full journey checks whether the features work together. Even a pass after an immediate restart leaves a gap. Try reopening the next day to check for delayed changes.
After the failed run, suppose the test log warns that the save was skipped. You trace the code and find it confirms cancellation without saving. Change it to save the cancellation and confirm only if the save succeeds. Reset the test data and repeat the whole journey.