|
1 |
| -Feature: Add Event to an Accession |
| 1 | +Feature: Accession Event Create |
2 | 2 | Background:
|
3 | 3 | Given an administrator user is logged in
|
4 | 4 | And an Accession has been created
|
5 | 5 | And the Accession is opened in edit mode
|
6 |
| - Scenario: Accession is opened to Add Event mode |
| 6 | + Scenario: Accession Event create page |
7 | 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' |
| 8 | + And the user clicks on 'Add Event' again |
| 9 | + Then the New Event page is displayed with the Accession linked |
| 10 | + Scenario: Accession Event is created |
| 11 | + Given the New Event page is open for an Accession |
| 12 | + When the user fills in 'Begin' with '2020-01-01' |
| 13 | + And the user links an Agent |
16 | 14 | 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 all required fields |
26 |
| - Given the Accession is opened in Add Event mode |
| 15 | + Then the 'Event Created' message is displayed |
| 16 | + Scenario: Accession Event is not created due to missing all required fields |
| 17 | + Given the New Event page is open for an Accession |
27 | 18 | When the user clicks on 'Save'
|
28 | 19 | Then the following error messages are displayed
|
29 | 20 | | Expression - is required unless a begin or end date is given |
|
30 | 21 | | Begin - is required unless an expression or an end date is given |
|
31 | 22 | | Agents - Property is required but was missing |
|
32 | 23 | | 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 |
| 24 | + Scenario: Accession Event is not created due to missing required fields - only 'Expression' is completed |
| 25 | + Given the New Event page is open for an Accession |
35 | 26 | When the user fills in 'Expression'
|
36 | 27 | And the user clicks on 'Save'
|
37 | 28 | Then the following error messages are displayed
|
38 | 29 | | Agents - Property is required but was missing |
|
39 | 30 | | 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 |
| 31 | + Scenario: Accession Event is not created due to invalid date format |
| 32 | + Given the New Event page is open for an Accession |
42 | 33 | When the user fills in 'Begin' with '2024-13-15'
|
43 |
| - And the user fills in 'Agents' |
44 |
| - And the user fills in 'Role' |
| 34 | + And the user links an Agent |
45 | 35 | And the user clicks on 'Save'
|
46 | 36 | Then the following error message is displayed
|
47 | 37 | | Begin - Not a valid date |
|
0 commit comments