@@ -5,32 +5,36 @@ Feature: Accession Event Create
5
5
And the Accession is opened in edit mode
6
6
Scenario : Accession Event create page
7
7
When the user clicks on 'Add Event'
8
- And the user clicks on 'Add Event' again
8
+ And the user clicks on 'Add Event' in the dropdown menu
9
9
Then the New Event page is displayed with the Accession linked
10
10
Scenario : Accession Event is created
11
11
Given the New Event page is open for an Accession
12
- When the user fills in 'Begin' with '2020-01-01'
12
+ When the user selects 'Single' from 'Type' in the 'Event Date/Time' form
13
+ And the user fills in 'Begin' with '2020-01-01' in the 'Event Date/Time' form
13
14
And the user links an Agent
14
15
And the user clicks on 'Save'
15
16
Then the 'Event Created' message is displayed
16
- Scenario : Accession Event is not created due to missing all required fields
17
+ Scenario : Accession Event is not created due to missing required fields
17
18
Given the New Event page is open for an Accession
18
- When the user clicks on 'Save'
19
+ When the user selects 'Single' from 'Type' in the 'Event Date/Time' form
20
+ And the user clicks on 'Save'
19
21
Then the following error messages are displayed
20
22
| Expression - is required unless a begin or end date is given |
21
23
| Begin - is required unless an expression or an end date is given |
22
24
| Agents - Property is required but was missing |
23
25
| Role - Property is required but was missing |
24
- Scenario : Accession Event is not created due to missing required fields - only ' Expression' is completed
26
+ Scenario : Accession Event is not created due to missing required fields, with Event Date/Time Expression filled in
25
27
Given the New Event page is open for an Accession
26
- When the user fills in 'Expression'
28
+ When the user selects 'Single' from 'Type' in the 'Event Date/Time' form
29
+ And the user fills in 'Expression' with 'Date Expression' in the 'Event Date/Time' form
27
30
And the user clicks on 'Save'
28
31
Then the following error messages are displayed
29
32
| Agents - Property is required but was missing |
30
33
| Role - Property is required but was missing |
31
- Scenario : Accession Event is not created due to invalid date format
34
+ Scenario : Accession Event is not created due to invalid date
32
35
Given the New Event page is open for an Accession
33
- When the user fills in 'Begin' with '2024-13-15'
36
+ When the user selects 'Single' from 'Type' in the 'Event Date/Time' form
37
+ And the user fills in 'Begin' with '2020-22-22' in the 'Event Date/Time' form
34
38
And the user links an Agent
35
39
And the user clicks on 'Save'
36
40
Then the following error message is displayed
0 commit comments