1+ Feature : Repository Edit
2+ Background :
3+ Given an administrator user is logged in
4+ And a Repository has been created
5+ Scenario : Repository is opened in the edit mode from the browse menu
6+ Given the Repository appears in the search results list
7+ When the user clicks on 'Edit'
8+ Then the Repository is opened in the edit mode
9+ Scenario : Repository is opened in the edit mode from the view mode
10+ Given the Repository is opened in the view mode
11+ When the user clicks on 'Edit'
12+ Then the Repository is opened in the edit mode
13+ Scenario Outline :Repository is successfully updated
14+ Given the Repository is opened in the edit mode
15+ When the user changes the '<Field>' field to '<NewValue>'
16+ And the user clicks on 'Save Repository'
17+ Then the 'Repository' saved message is displayed
18+ And the field '<Field>' has value '<NewValue>'
19+ Examples :
20+ | Field | NewValue |
21+ | Repository Short Name | Test Short Name |
22+ | Description | Test Description |
23+ Scenario : Repository is not updated after changes are canceled
24+ Given the Repository is opened in edit mode
25+ When the user changes the 'Short Name' field
26+ And the user clicks on 'Cancel'
27+ Then the Repository Short Name field has the original value
28+ Scenario : Delete required field of a Repository fails
29+ Given the Repository is opened in edit mode
30+ When the user clears the 'Repository Short Name' field
31+ And the user clicks on 'Save Repository'
32+ Then the following error messages are displayed
33+ | Repository Short Name - Property is required but was missing |
34+ Then the Repository Short Name field has the original value
0 commit comments