# Test case template — notes app

## How to fill in a row (HOW)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| HOW-00 | What the user is trying to do, in their words | What must be true before step 1: account, role, data, network | 1. One action. 2. One action. 3. One action. | What the user should see, specific enough that two people agree on pass or fail | Pass / Fail / N/A | | |

## Create and edit notes (NOTE)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| NOTE-01 | Create a note | Signed in, no notes yet | 1. Tap New note. 2. Type a title and a line of text. 3. Tap Save. | The note is first in the list with its title and today's date. | | | |
| NOTE-02 | Save with an empty title | Signed in | 1. Tap New note. 2. Leave the title empty and type some text. 3. Tap Save. | The note saves as "Untitled", or a message asks for a title. It is never lost. | | | |
| NOTE-03 | Save tapped twice | Signed in, a new note typed | 1. Tap Save twice quickly. | One note is saved, not two. | | | |
| NOTE-04 | Edit a note | A saved note | 1. Open it. 2. Change the text. 3. Go back to the list. | The list shows the new text and an updated time. | | | |
| NOTE-05 | Very long text | Signed in | 1. Paste 20,000 characters into a note. 2. Save. 3. Open it again. | All the text is there and the screen still scrolls smoothly. | | | |

## Delete and restore (DEL)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| DEL-01 | Delete a note | A saved note | 1. Open it. 2. Tap Delete. 3. Confirm. | The note is gone from the list and a message offers Undo. | | | |
| DEL-02 | Undo a delete | A note just deleted | 1. Tap Undo. | The note is back in the same place with its text unchanged. | | | |
| DEL-03 | Cancel the delete | A saved note | 1. Tap Delete. 2. Tap Cancel. | Nothing is deleted. | | | |

## Offline and sync (SYNC)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| SYNC-01 | Write a note offline | Signed in, airplane mode on | 1. Create a note. 2. Turn the network back on. | The note is kept and appears on the other device within a minute. | N/A | | |
| SYNC-02 | Edit the same note on two devices | Signed in on web and phone | 1. Edit the note on the phone. 2. Edit it on web before it syncs. | Neither edit is silently lost: both are kept, or the app asks which to keep. | | | |

## Access (ACC)

| ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS |
|---|---|---|---|---|---|---|---|
| ACC-01 | Another account cannot open my note | Two accounts, a note owned by the first | 1. Sign in as the second account. 2. Open the first account's note by its link. | Access is refused and none of the note is shown. | | N/A | N/A |
