-
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
0f4bac6
commit 40d2e37
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
staff_features/digital_objects/digital_object_edit.feature
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,40 @@ | ||
Feature: Digital Object Edit | ||
Background: | ||
Given an administrator user is logged in | ||
And a Digital Object has been created | ||
Scenario: Digital Object is opened in the edit mode from the browse menu | ||
Given the Digital Object appears in the search results list | ||
When the user clicks on 'Edit' | ||
Then the Digital Object is opened in the edit mode | ||
Scenario: Digital Object is opened in the edit mode from the view mode | ||
Given the Digital Object is opened in the view mode | ||
When the user clicks on 'Edit' | ||
Then the Digital Object is opened in the edit mode | ||
Scenario Outline: Digital Object is successfully updated | ||
Given the Digital Object is opened in the edit mode | ||
When the user changes the '<Field>' field to '<NewValue>' | ||
And the user clicks on 'Save' | ||
Then the 'Digital Object' updated message is displayed | ||
And the field '<Field>' has value '<NewValue>' | ||
Examples: | ||
| Field | NewValue | | ||
| Title | Updated Test Digital Object | | ||
| Digital Object Type | Mixed Materials | | ||
Scenario: Digital Object is not updated after changes are reverted | ||
Given the Digital Object is opened in the edit mode | ||
When the user changes the 'Title' field | ||
And the user clicks on 'Revert Changes' | ||
Then the Digital Object Title field has the original value | ||
Scenario: Digital Object update fails due to invalid date input | ||
Given the Digital Object is opened in the edit mode | ||
When the user fills in 'Begin' at 'Dates' form with '2024-13-15' | ||
And the user clicks on 'Save' | ||
Then the following error message is displayed | ||
| Begin - Not a valid date | | ||
Scenario: Digital Object update fails due to missing required field | ||
Given the Digital Object is opened in the edit mode | ||
When the user clears the 'Identifier' field | ||
And the user clicks on 'Save' | ||
Then the following error message is displayed | ||
| Identifier - Property is required but was missing | | ||
And the Digital Object Identifier field has the original value |