-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a1cfb2
commit 79fa1d6
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>' field to '<NewValue>' | ||
And the user clicks on 'Save' | ||
Then the 'Subject' updated message is displayed | ||
Then the field '<Field>' has value '<NewValue>' | ||
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 |