BDD file with acceptance criteria for managing projects inside a folder, describing each step of the feature and user permissions.
Feature: As a user I want to manage projects in a folder
Scenario Outline: Delete own project in a folder
Given I am <userRole>
Then I <permissionType> delete my own projects from within a folder
Examples:
| userRole | pemissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |
Scenario Outline: Delete others projects
Given I am <userRole>
Then I <permissionType> delete projects owned by other users from within a folder
Examples:
| userRole | pemissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can not |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |
Scenario Outline: Add projects to current folder from add projects to folder page
Given I am <userRole>
When I go to the add projects to folder page
Then I will see projects I have access to
And I <permissionType> add them to the current folder
Examples:
| userRole | pemissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |
Scenario Outline: Add projects to another folder from action bar pop up
Given I am <userRole>
When I have projects selected in my current folder
Then I <permissionType> add them to another folder I have access to
Examples:
| userRole | pemissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |
Scenario Outline: Remove projects from folder
Given I am <userRole>
When I have projects selected in my current folder
Then I <permissionType> remove them from any folder I have access to
Examples:
| userRole | pemissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |