Acceptance Criteria Examples: 15 User Story Samples
2 days agoPUBLISHED INAgile
These acceptance criteria examples cover 15 user stories across Given/When/Then, checklist, non-functional and edge-case formats. Copy the one closest to your story, swap in your own rules, and make sure every line can be tested before the story enters a sprint.
|
Quick answer • Given/When/Then suits behaviour with a clear trigger and outcome (examples 1–5). • Checklists suit settings, reports and admin screens (examples 6–9). • Non-functional criteria set limits for speed, accessibility and security (examples 10–12). • Edge cases and regulated features need error paths and audit trails written down (examples 13–15). |
What makes an acceptance criterion usable?
A usable criterion can be checked as pass or fail by someone who did not write it. Four tests catch most problems:
|
Test |
Ask yourself |
Weak |
Usable |
|
Testable |
Can a tester mark it pass or fail? |
Search is fast |
Results appear within 2 seconds for 10,000 records |
|
Specific |
Does it name the input and the result? |
Errors are handled |
An expired link shows "This link has expired" |
|
Outcome, not build |
Does it describe what the user sees, not how to code it? |
Use a Redis cache |
Repeat searches return the same results |
|
Agreed early |
Was it settled before the sprint started? |
Added during review |
Agreed in refinement |
Given/When/Then examples
1. Password reset
Story: As a user, I want to reset my password so that I can sign in again.
Scenario 1
• Given I have an account with [email protected]
• When I request a reset link for [email protected]
• Then I receive an email with a single-use link
Scenario 2
• Given my reset link is older than 60 minutes
• When I open it
• Then I see "This link has expired" and can request a new one
Common mistake: Forgetting the second scenario. The expiry rule is where most bugs hide.
2. Search with filters
Story: As a buyer, I want to filter search results by price so that I only see what I can afford.
• Given there are 40 products between $10 and $200
• When I set the price filter to $20–$50
• Then only products priced $20–$50 are listed
• And the result count updates to match
Common mistake: Leaving out the count. Testers then can't tell whether the filter or the list is wrong.
3. File upload limit
Story: As a member, I want to attach files to a task so that the team has the source material.
Scenario 1
• Given I am editing a task
• When I upload a 12 MB PDF
• Then the file is attached and shows its name and size
Scenario 2
• When I upload a 30 MB file
• Then I see "Files must be 25 MB or smaller" and nothing is attached
Common mistake: Writing "large files are rejected" without saying how large.
4. Notification preferences
Story: As a user, I want to turn off email alerts for comments so that my inbox stays usable.
• Given comment emails are on
• When I switch off "Email me about comments" and save
• Then I receive no emails for new comments
• And I still receive emails for mentions
Common mistake: Missing the "still receive" line, which protects the alerts the user didn't turn off.
5. Saved card checkout
Story: As a returning customer, I want to pay with my saved card so that checkout is quicker.
Scenario 1
• Given I have one saved card ending 4242
• When I choose it and confirm the order
• Then the order is placed and the confirmation shows "card ending 4242"
Scenario 2
• Given the payment is declined
• Then the order is not placed and I can choose another method
Common mistake: Testing only the happy path on a money flow.
Checklist examples
Checklists work when there is no single trigger, only a set of things that must be true on a screen or in a file.
6. Admin role management
Story: As an admin, I want to change a member's role so that access matches their job.
• Admins see a role dropdown on each member row
• Roles available: Viewer, Member, Admin
• A member cannot change their own role
• The change applies without the member signing out
• The change is recorded in the activity log with who and when
Common mistake: Leaving out the self-change rule, which is a common security gap.
7. CSV export of a report
Story: As a manager, I want to export the sprint report so that I can share it.
• The Export button downloads a .csv file
• Columns match the on-screen table, in the same order
• Dates use YYYY-MM-DD
• An empty report exports headers only, not an error
Common mistake: Not saying what an empty export should do.
8. Onboarding checklist
Story: As a new user, I want a setup checklist so that I know what to do first.
• Shows 4 steps: profile, invite team, create project, connect calendar
• Each step is ticked automatically when done
• The checklist can be dismissed and reopened from Help
• It no longer appears once all 4 steps are complete
Common mistake: No rule for when the checklist disappears.
9. Dashboard widget
Story: As a team lead, I want an open-bugs widget so that I see risk at a glance.
• Shows the count of open bugs by priority
• Clicking a priority opens the filtered bug list
• Updates within 1 minute of a bug changing status
• Shows "No open bugs" when the count is zero
Common mistake: Not defining how fresh the number must be.
Non-functional examples
Non-functional criteria describe how well a feature works rather than what it does. The numbers below are examples. Set your own limits from your product's real targets.
10. Performance
Story: As a user, I want the project list to load quickly so that I can start work.
• Given an account with 500 projects
• When I open the project list on a standard office connection
• Then the first 50 projects appear within 2 seconds
• And scrolling loads the next 50 without freezing the page
Common mistake: "Should be fast" is an opinion, not a criterion.
11. Accessibility
Story: As a keyboard user, I want to complete the sign-up form without a mouse.
• Every field and button can be reached and used with the keyboard
• Focus order follows the visual order
• Body text has a contrast ratio of at least 4.5:1
• Error messages are announced to screen readers
Common mistake: Writing "meets accessibility standards" without naming which ones. The keyboard and contrast lines above follow WCAG 2.2 success criteria 2.1.1 and 1.4.3.
12. Security
Story: As an account owner, I want failed sign-ins limited so that my account is harder to break into.
• Given 5 failed sign-in attempts in 15 minutes
• When a 6th attempt is made
• Then the account is locked for 15 minutes
• And the owner receives an email about the lockout
Common mistake: Leaving the thresholds to the developer to decide.
Edge-case and regulated examples
13. Invalid coupon
Story: As a shopper, I want clear feedback on coupon codes so that I know whether my discount applied.
Scenario 1
• Given the code SAVE10 expired yesterday
• When I apply SAVE10
• Then I see "This code has expired" and the total is unchanged
Scenario 2
• When I apply a code that does not exist
• Then I see "Code not recognised"
Common mistake: One generic error for every failure, which hides the reason from the user.
14. Refund limits
Story: As a support agent, I want to issue refunds so that customers are paid back correctly.
• Given an order paid at $80
• When I refund $50 and then try to refund $40
• Then the second refund is blocked with "Refund exceeds remaining amount ($30)"
• And every refund is logged with agent, amount and time
Common mistake: No upper limit on refunds. Money flows need a person from finance to review the criteria.
15. Audit-logged record change
Story: As a quality manager, I want every change to a released requirement recorded so that we can pass an audit.
• Requirement: REQ-112
• Given requirement REQ-112 has status Released
• When any user edits its text
• Then the old text, new text, user and time are stored
• And the change cannot be deleted by any role
Common mistake: Not tagging the criterion with the requirement ID, which breaks traceability.
How do you turn a criterion into a test case?
Write one test case per scenario or checklist line, and keep the requirement ID on both. That way anyone can trace a failed test back to the story and the requirement it protects.
|
Criterion |
Test case |
Requirement |
|
Expired reset link shows a message (example 1) |
TC-201: open a link created 61 minutes ago; expect the expiry message |
REQ-031 |
|
Second refund blocked (example 14) |
TC-347: refund $50, then $40 on an $80 order; expect a block |
REQ-088 |
|
Released requirement edits are logged (example 15) |
TC-410: edit REQ-112; check the log entry fields |
REQ-112 |
In Sanplex, stories, test cases and a requirements traceability matrix sit in one place, so you can keep that link without a spreadsheet. See writing and tracking user stories in Sanplex.
When can criteria change after the sprint starts?
Only with the product owner's agreement and a note on the story. Small wording fixes are fine. A new rule that changes scope is a new story or a re-estimate, not a quiet edit. Anyone who finds a gap mid-sprint should raise it at the next stand-up rather than coding around it.
Frequently asked questions
Who writes acceptance criteria?
The product owner usually owns them, but the best criteria are written together. Developers add technical limits, and testers add error paths and edge cases. Agree them in backlog refinement, before the story is pulled into a sprint, so nobody discovers a new rule during sprint review.
How many acceptance criteria should a user story have?
Enough to describe every outcome the story promises, and no more. If the list keeps growing, the story is probably doing too much and should be split. A story with one vague line is the opposite problem: testers will fill the gaps with guesses.
What is the difference between acceptance criteria and a definition of done?
Acceptance criteria are specific to one story and describe what it must do. A definition of done applies to every story and covers quality steps such as code review, tests passing and documentation. Read more on the difference between DoD and acceptance criteria.
|
Want stories, criteria and test cases in one place? See how your team could manage stories, test cases and traceability together: book a call. Pricing: Sanplex has a free edition for unlimited users. Standard costs $49.9 and Premium $69.9 per user per year (sanplex.com/pricing, December 2026). |
Resource
- Blog
- Customer stories
- FAQ
Support
- Book a Demo
- Email Us: [email protected]
2026-12-04 20:24:11
0