Feature: As a team member I want to edit the title of my user test
Scenario Outline: <userRole> can edit a user test title
Given my user role is <userRole>
Then I will have permission to edit a user test title
Examples:
| userRole |
| OWNER |
| ADMIN |
| EDITOR |
Scenario Outline: <userRole> can not select a test result title
Given my user role is <userRole>
Then I will not have permission to edit a user test title
Examples:
| userRole |
| INTERNAL_REVIEWER |
| EXTERNAL_REVIEWER |
Scenario: Saving updates
Given I have updated my title
And I click save
Then my new title will be assigned to the user test
Scenario: Cancelling updates
Given I click to cancel
Then the title input will become unfocussed
And my title will not be updated
Scenario: Saving title fails
Given I click save
And the update fails
Then I will be shown an error notification