|
| 1 | +Feature: Subject Edit |
| 2 | + Background: |
| 3 | + Given an administrator user is logged in |
| 4 | + And a Subject has been created |
| 5 | + Scenario: Subject is opened in the edit mode from the browse menu |
| 6 | + Given the Subject appears in the search results list |
| 7 | + When the user clicks on 'Edit' |
| 8 | + Then the Subject is opened in the edit mode |
| 9 | + Scenario: Subject is opened in the edit mode from the view mode |
| 10 | + Given the Subject is opened in the view mode |
| 11 | + When the user clicks on 'Edit' |
| 12 | + Then the Subject is opened in the edit mode |
| 13 | + Scenario Outline: Subject is successfully updated |
| 14 | + Given the Subject is opened in edit mode |
| 15 | + When the user changes the '<Field>' field to '<NewValue>' |
| 16 | + And the user clicks on 'Save' |
| 17 | + Then the 'Subject' updated message is displayed |
| 18 | + Then the field '<Field>' has value '<NewValue>' |
| 19 | + Examples: |
| 20 | + | Field | NewValue | |
| 21 | + | Authority ID | Test Authority ID | |
| 22 | + | Scope Note | Test Scope Note | |
| 23 | + Scenario: Subject is not updated after changes are reverted |
| 24 | + Given the Subject is opened in edit mode |
| 25 | + When the user changes the 'Term' field |
| 26 | + And the user clicks on 'Revert Changes' |
| 27 | + Then the Subject Term field has the original value |
| 28 | + Scenario: Delete required sub-record of a Subject fails |
| 29 | + Given the Subject is opened in edit mode |
| 30 | + When the user selects 'empty Source' from 'Source' in the 'Besic Information' form |
| 31 | + And the user clicks on 'Save' |
| 32 | + Then the following error messages are displayed |
| 33 | + | Source - Property is required but was missing | |
| 34 | + Scenario: Delete sub-record of a Subject |
| 35 | + Given the Subject is opened in edit mode |
| 36 | + And the Subject has one Metadata Rights Declarations |
| 37 | + When the user clicks on remove icon in the 'Metadata Rights Declarations' form |
| 38 | + And the user clicks on 'Confirm Removal' |
| 39 | + And the user clicks on 'Save' |
| 40 | + Then the 'Subject' updated message is displayed |
| 41 | + And the Subject does not have Metadata Rights Declarations |
0 commit comments