BDD file with acceptance criteria for the create project form, describing each step of the feature.
Feature: As a user I want to create a new project
Scenario Outline: Creating project from project dashboard
Given I am <userRole>
Then I <permissionType> create a project
Examples:
| userRole | permissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |
Scenario Outline: Creating project from folder dashboard
Given I am <userRole> viewing folder projects
Then I <permissionType> create a project
Examples:
| userRole | permissionType |
| OWNER | can |
| ADMIN | can |
| EDITOR | can |
| EXTERNAL_EDITOR | can |
| INTERNAL_REVIEWER | can not |
| EXTERNAL_REVIEWER | can not |
Scenario Outline: Project type on project dashboard
Given I am creating a project
Then I will have the option to create a <projectType>
And choosing this will take me to the <destination>
Examples:
| projectType | destination |
| Prototype | /projects/new/prototype/team |
| User Test | /user-test/create |
Scenario Outline: Project type on folder dashboard
Given I am creating a project within a folder with id <id>
Then I will have the option to create a <projectType>
And choosing this will take me to the <destination> URL
Examples:
| projectType | id | destination |
| Prototype | bob | /projects/new/prototype/team?folderId=bob |
| User Test | xyz123 | /user-test/create?folderId=xyz123 |