Skip to content

Commit

Permalink
digital object edit
Browse files Browse the repository at this point in the history
  • Loading branch information
kdimopulu authored and blacksmith-welder committed Dec 21, 2024
1 parent 0f4bac6 commit 40d2e37
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions staff_features/digital_objects/digital_object_edit.feature
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

0 comments on commit 40d2e37

Please sign in to comment.