Ok so I'm just starting to try and use BDD for some new development we are doing and I wrote up a story like this for a log viewer feature:
Story: User reviews workflow execution logs
As a user
I want to review the log of rules execution
So that I can examine the results and make adjustments/fixes to the rules definitions
with some scenarios that goes with it, something like given the user has proper security privileges to the log viewer when he clicks on view log then he is granted access to the log viewer
Now I know we need a way to sort and filter the log. Is this meant to be a whole other story, like this ?
Story: User filters the execution logs
As a user
I want to filter the log entries by selecting categories
so that I can view only log entries matching the category I selected
Or are some more 'simpler' feature belongs in a scenario of the first story ? like this...
Scenario 2:
Given the user is looking at the log entries
When a category is selected
Then only the log entries matching the categories are displayed
I understand this might be hard to answer as there is probably not one right way to do this, but I still am a little confused on how these kind of things should be split.