Skip to content

Commit efcf92a

Browse files
committed
gherkin scenarios for add event to an accession
1 parent 089aae3 commit efcf92a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Feature: Add Event to an Accession
2+
Background:
3+
Given an administrator user is logged in
4+
And an Accession has been created
5+
And the Accession is opened in edit mode
6+
Scenario: Accession is opened to Add Event mode
7+
When the user clicks on 'Add Event'
8+
And the user selects 'Accession' from the drop down menu
9+
And the user clicks on 'Add Event' button
10+
Then the Accession is opened in the Add Event mode
11+
Scenario: Event type accession is successfully added
12+
Given the Accession is opened in add event mode
13+
When the user fills in 'Begin'
14+
And the user fills in 'Agents'
15+
And the user fills in 'Role'
16+
And the user clicks on 'Save'
17+
Then the 'Event' Created message is displayed
18+
Scenario: Event type accession is not added
19+
Given the Accession is opened in Add Event mode
20+
When the user fills in 'Begin'
21+
And the user fills in 'Agents'
22+
And the user fills in 'Role'
23+
And the user clicks on 'Cancel'
24+
Then the Event is not created
25+
Scenario: Add Event fails due to missing required field
26+
Given the Accession is opened in Add Event mode
27+
When the user clicks on 'Save'
28+
Then the following error messages are displayed
29+
| Expression - is required unless a begin or end date is given |
30+
| Begin - is required unless an expression or an end date is given |
31+
| Agents - Property is required but was missing |
32+
| Role - Property is required but was missing |

0 commit comments

Comments
 (0)