From 79fa1d655ffba4239d75c99369bd75cad17dcbd6 Mon Sep 17 00:00:00 2001 From: dinadi Date: Fri, 17 Jan 2025 15:10:31 +0200 Subject: [PATCH] Subject edit --- staff_features/subjects/subject_edit.feature | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 staff_features/subjects/subject_edit.feature diff --git a/staff_features/subjects/subject_edit.feature b/staff_features/subjects/subject_edit.feature new file mode 100644 index 0000000..f4cf19a --- /dev/null +++ b/staff_features/subjects/subject_edit.feature @@ -0,0 +1,41 @@ +Feature: Subject Edit + Background: + Given an administrator user is logged in + And a Subject has been created + Scenario: Subject is opened in the edit mode from the browse menu + Given the Subject appears in the search results list + When the user clicks on 'Edit' + Then the Subject is opened in the edit mode + Scenario: Subject is opened in the edit mode from the view mode + Given the Subject is opened in the view mode + When the user clicks on 'Edit' + Then the Subject is opened in the edit mode + Scenario Outline: Subject is successfully updated + Given the Subject is opened in edit mode + When the user changes the '' field to '' + And the user clicks on 'Save' + Then the 'Subject' updated message is displayed + Then the field '' has value '' + Examples: + | Field | NewValue | + | Authority ID | Test Authority ID | + | Scope Note | Test Scope Note | + Scenario: Subject is not updated after changes are reverted + Given the Subject is opened in edit mode + When the user changes the 'Term' field + And the user clicks on 'Revert Changes' + Then the Subject Term field has the original value + Scenario: Delete required sub-record of a Subject fails + Given the Subject is opened in edit mode + When the user selects 'empty Source' from 'Source' in the 'Besic Information' form + And the user clicks on 'Save' + Then the following error messages are displayed + | Source - Property is required but was missing | + Scenario: Delete sub-record of a Subject + Given the Subject is opened in edit mode + And the Subject has one Metadata Rights Declarations + When the user clicks on remove icon in the 'Metadata Rights Declarations' form + And the user clicks on 'Confirm Removal' + And the user clicks on 'Save' + Then the 'Subject' updated message is displayed + And the Subject does not have Metadata Rights Declarations