BDD file with acceptance criteria for editing a folders name and description, describing each step of the feature and user permissions.
Feature: As a user I want to edit a Folder
Scenario Outline: Updating folder name
Given I am <userRole>
Then I <permissionType> update the folder's name
Examples:
| userRole | pemissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |
Scenario Outline: Updating folder description
Given I am <userRole>
Then I <permissionType> update the folder's description
Examples:
| userRole | pemissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |
Scenario: Renaming folder
Given I am renaming folder
And renaming is successful
Then the folder name should update
Scenario: Submitting empty folder name
Given I submit an empty folder name
Then I should see visual feedback explaining there was an issue
Scenario: Failed folder renaming
Given the folder name failed to update
Then I should see visual feedback explaining there was an issue