BDD file with acceptance criteria the action bar on a team projects dashboard, describing each step of the feature and user permissions.
Feature: As a user I want to view the project action bar on Team all projects
Scenario Outline: On the team all projects dashboard
Given my user role is <User role>
Then I can see the option to select a project
Examples:
| User role |
| OWNER |
| ADMIN |
| EDITOR |
Scenario Outline: On the team all projects dashboard
Given my user role is <User role>
Then I can not see the option to select a project
Examples:
| User role |
| INTERNAL_REVIEWER |
| EXTERNAL_REVIEWER |
Scenario Outline: Action bar appears
Given the project action bar appears into view
Then I can see options to <action>
And the number of projects I have selected
Examples:
| Action |
| Copy |
| Add / Remove from folder |
| Archive |
| Delete |
Scenario Outline: Selecting a project
Given I have selected multiple projects
And the action bar is in view
Then I should see options to <action>
And the number of projects I have selected
Examples:
| Action |
| Add / Remove from folder |
| Archive |
| Delete |
Scenario: Closing the action bar
Given I have projects selected
And I deselect all projects
Then action bar should close