I've recently been tasked with writing user stories and acceptance criteria (GWT) and would like to ask for advice since I'm relatively new to such approach.
A bit of context:
- Project is a web app somewhat similar to Reddit;
- Acceptance criteria should be written in Gherkin format (it's mandatory);
- Some user stories are already written but lack acceptance criteria
I'm currently struggling with writing acceptance criteria for the "View" type of user stories. For example, here's the user story: As a guest user, I want to view the platform home page so that I can get the platform overview
My acceptance criteria start with this:
Given I haven't logged in to the platform
When I navigate to the platform home page
Once I get to the "Then" part, it becomes tricky. The thing is, there's a lot of stuff on the home page. Think of Reddit - there are things like "Trending today", feed and related sorting/filtering, list of suggested communities etc. Moreover, I can log in or sign up, navigate to the subreddit, navigate to post, upvote/downvote post and so on and so forth. Here's the screenshot: https://prnt.sc/xlxfqz
Putting all that into "Then" doesn't look like a good idea - the list of "And"s will be infinite and messy! Like,
Then I can view the posts
And I can sort them
And I can view the post details
And I can log in
And I can sign up
And dozens of other "ands"
The question is, are there any kind of best practices for writing AC to such user stories? Be it a home page or personal account with a lot of available actions (change avatar, view setting (again view!), log out etc.)?
I apologize if it's a silly question, but I couldn't find a good answer through googling. Any feedback is appreciated, will be glad to share more info if needed.
Thanks in advance and have a great day!