# Booking app — test plan

## Sign up and sign in (AUTH)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| AUTH-01 | Sign up with an email address | No account for this email | 1. Open the app. 2. Tap Create account. 3. Enter a name, email and password. 4. Submit. | The account is created and the home screen opens. A verification email arrives within a minute. | | | |
| AUTH-02 | Wrong password shows a clear error | An existing account | 1. Enter the right email and a wrong password. 2. Tap Sign in. | A message says the email or password is wrong. The email stays filled in. | | | |
| AUTH-03 | Reset a forgotten password | An existing account | 1. Tap Forgot password. 2. Enter the email. 3. Open the link in the email. 4. Set a new password. | The new password signs you in. The old one no longer works. | | | |
| AUTH-04 | A lesser role cannot reach admin screens | A member account, not an admin | 1. Sign in as the member. 2. Open an admin page by its address. | Access is refused, and no admin data is shown. | | | |

## The main journey (BOOK)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| BOOK-01 | Book a free slot | Signed in, a slot open tomorrow | 1. Open Book. 2. Pick tomorrow. 3. Pick the open slot. 4. Confirm. | The booking appears in My bookings with the right date and time, and a confirmation email arrives. | | | |
| BOOK-02 | A taken slot cannot be booked twice | A slot another account has just booked | 1. Try to book the same slot. | The slot shows as taken. No second booking is made. | | | |
| BOOK-03 | Confirm tapped twice | Signed in, a slot picked | 1. Tap Confirm twice quickly. | One booking is made, not two. | | | |
| BOOK-04 | Cancel a booking | An upcoming booking | 1. Open it. 2. Tap Cancel. 3. Confirm. | The booking is gone from My bookings, the slot is free again, and an email says so. | | | |
| BOOK-05 | An empty account | A new account with no bookings | 1. Open My bookings. | A message says there are no bookings yet, with a button to make one. | | | |

## Payments (PAY)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| PAY-01 | Pay with a card | A paid slot picked, test card 4242 4242 4242 4242 | 1. Confirm. 2. Pay with the card. | The payment succeeds once, the booking is confirmed, and a receipt arrives. | | | |
| PAY-02 | A declined card is handled | A paid slot picked, test card 4000 0000 0000 0002 | 1. Pay with the declining card. | A message says the card was declined. No booking is made and the slot stays open. | | | |
| PAY-03 | Refund on cancel | A paid booking inside the refund window | 1. Cancel it. | The refund shows on the receipt, and the amount matches what was paid. | | | |

## Forms and errors (FORM)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| FORM-01 | Empty and wrong input | The profile form open | 1. Save it empty. 2. Enter a wrong email format and very long text. 3. Save. | A clear message beside each wrong field. Nothing is saved half-way. | | | |
| FORM-02 | Changes survive a reload | The profile form open | 1. Change the name. 2. Save. 3. Reload or reopen the app. | The new name is still there. | | | |
| FORM-03 | No connection | Network cut | 1. Try to book or save. | A message says there is no connection. Nothing is lost, and it works once the network is back. | | | |

## Devices and notifications (DEV)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| DEV-01 | Reminder before a booking | A booking in one hour, notifications allowed | 1. Wait for the reminder. | A notification arrives, and tapping it opens the booking. | N/A | | |
| DEV-02 | The smallest screen | Smallest supported phone or a narrow browser | 1. Open Book, My bookings and Profile. | Nothing overlaps or is cut off, and every button can be tapped. | | | |
| DEV-03 | Upgrade over the last version | The previous version installed, signed in | 1. Install this build over it. | Still signed in, bookings intact, no crash on first open. | N/A | | |
