BDD file with acceptance criteria for sorting folders, describing each step of the feature.
Feature: As a user I want to reorder folders lists I have access to for my preffered view
Scenario: On the my folders dashboard viewing default sort
Given I am viewing my personal folders list
Then I should see my folders in Last updated order
Scenario Outline: Remembering last sort
Given my last sort is <sort>
When I go to my folder dashboard
Then I can see folders in <sort> order
Examples:
| sort |
| Last updated |
| Alphabetical |
Scenario: Opening sort
Given I have clicked on the sort select box
Then the sort options will appear
Scenario Outline: Selecting <sort>
Given I click a <sort> that is the same as my current sort
Then My folders list state will persist
And the sort options will close
Examples:
| sort |
| Last updated |
| Alphabetical |
Scenario Outline: Changing <sort>
Given I click a <sort> that is different than my current sort
Then My folders list will update to be sorted by <sort>
And the sort options will close
Examples:
| sort |
| Last updated |
| Alphabetical |
Scenario: Closing sort on click box
Given I have sort options in view
And I click on the sort title
Then the sort options will close
Scenario: Closing sort on outside click
Given I have sort options in view
And I click on the away from the sort options
Then the sort options will close