Skip to content

Commit dce2c2f

Browse files
committed
gherkin scenarios for accession spawn accession
1 parent 089aae3 commit dce2c2f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Feature: Spawning a new accession record from an existing accession record
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 Spawn Accession page is opened
7+
When the user clicks on 'Spawn'
8+
And the user clicks on 'Accession' in the dropdown menu
9+
Then the New Accession page is opened
10+
And the 'This Accession has been spawned from Accession . This record is unsaved. You must click Save for the record to be created in the system.' message is displayed
11+
Scenario: Successfully spawn a new accession record from an existing accession record - non linked
12+
Given the user is on the New Accession page spawned from the original accession
13+
When the user fills in 'Identifier' with a unique identifier
14+
And the user does not add any links to the original accession in the 'Related Accessions' form
15+
And the user clicks on 'Save'
16+
Then the Accession is created
17+
And the new accession record is not linked to the original accession
18+
Scenario: Successfully spawn a new accession record from an existing accession record - linked
19+
Given the user is on the New Accession page spawned from the original accession
20+
When the user fills in 'Identifier' with a unique identifier
21+
And the user adds links to the original accession in the 'Related Accessions' form
22+
And the user clicks on 'Save'
23+
Then the Accession is created
24+
And the new accession record is linked to the original accession in the 'Related Accessions' field
25+
Scenario: Accession Spawn is not created due to missing required fields
26+
Given the user is on the New Accession page spawned from the original accession
27+
When the user clicks on 'Save'
28+
Then the following error message is displayed
29+
| Identifier - Property is required but was missing |

0 commit comments

Comments
 (0)