Skip to content

Commit 08b15d5

Browse files
committed
added scenarios
1 parent efcf92a commit 08b15d5

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

staff_features/accessions/accession_add_events.feature

+16-1
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,26 @@ Feature: Add Event to an Accession
2222
And the user fills in 'Role'
2323
And the user clicks on 'Cancel'
2424
Then the Event is not created
25-
Scenario: Add Event fails due to missing required field
25+
Scenario: Add Event fails due to missing all required fields
2626
Given the Accession is opened in Add Event mode
2727
When the user clicks on 'Save'
2828
Then the following error messages are displayed
2929
| Expression - is required unless a begin or end date is given |
3030
| Begin - is required unless an expression or an end date is given |
3131
| Agents - Property is required but was missing |
3232
| Role - Property is required but was missing |
33+
Scenario: Add Event fails due to missing required fields - only 'Expression' is completed
34+
Given the Accession is opened in Add Event mode
35+
When the user fills in 'Expression'
36+
And the user clicks on 'Save'
37+
Then the following error messages are displayed
38+
| Agents - Property is required but was missing |
39+
| Role - Property is required but was missing |
40+
Scenario: Add Event fails due to invalid date format
41+
Given the Accession is opened in Add Event mode
42+
When the user fills in 'Begin' with '2024-13-15'
43+
And the user fills in 'Agents'
44+
And the user fills in 'Role'
45+
And the user clicks on 'Save'
46+
Then the following error message is displayed
47+
| Begin - Not a valid date |

0 commit comments

Comments
 (0)