-
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
a0dbc6d
commit 3fc13b0
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
staff_features/digital_objects/digital_object_event_create.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,41 @@ | ||
Feature: Digital Object Event Create | ||
Background: | ||
Given an administrator user is logged in | ||
And a Digital Object has been created | ||
And the Digital Object is opened in edit mode | ||
Scenario: Digital Object Event create page | ||
When the user clicks on 'Add Event' | ||
And the user clicks on 'Add Event' in the modal | ||
Then the New Event page is displayed with the Digital Object linked | ||
Scenario: Digital Object Event is created | ||
Given the New Event page is open for a Digital Object | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Begin' with '2020-01-01' in the 'Event Date/Time' form | ||
And the user links an Agent | ||
And the user clicks on 'Save' | ||
Then the 'Event' created message is displayed | ||
Scenario: Digital Object Event is not created due to missing required fields | ||
Given the New Event page is open for a Digital Object | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user clicks on 'Save' | ||
Then the following error messages are displayed | ||
| Expression - is required unless a begin or end date is given | | ||
| Begin - is required unless an expression or an end date is given | | ||
| Agents - Property is required but was missing | | ||
| Role - Property is required but was missing | | ||
Scenario: Digital Object Event is not created due to missing required fields, with Event Date/Time Expression filled in | ||
Given the New Event page is open for a Digital Object | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Expression' with 'Date Expression' in the 'Event Date/Time' form | ||
And the user clicks on 'Save' | ||
Then the following error messages are displayed | ||
| Agents - Property is required but was missing | | ||
| Role - Property is required but was missing | | ||
Scenario: Digital Object Event is not created due to invalid date | ||
Given the New Event page is open for a Digital Object | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Begin' with '2020-22-22' in the 'Event Date/Time' form | ||
And the user links an Agent | ||
And the user clicks on 'Save' | ||
Then only the following error message is displayed | ||
| Begin - Not a valid date | |