Skip to content

Commit a5b844c

Browse files
Fix formatting
1 parent 33e6be4 commit a5b844c

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
Feature: Accession edit
1+
Feature: Accession Edit
22
Background:
33
Given an administrator user is logged in
4-
And an Accession has been created
4+
And an Accession has been created
55
Scenario: Accession is opened in the edit mode from the browse menu
66
Given the Accession appears in the search results list
7-
When the user clicks on 'Edit'
8-
Then the Accession is opened in the edit mode
9-
And all fields become editable
7+
When the user clicks on 'Edit'
8+
Then the Accession is opened in the edit mode
9+
And all fields become editable
1010
Scenario: Accession is opened in the edit mode from the view mode
1111
Given the Accession is opened in the view mode
12-
When the user clicks on 'Edit'
13-
Then the Accession is opened in the edit mode
14-
And all fields become editable
12+
When the user clicks on 'Edit'
13+
Then the Accession is opened in the edit mode
14+
And all fields become editable
1515
Scenario Outline: Accession is successfully updated
1616
Given the Accession is opened in edit mode
17-
When the user changes the <Field> field to <NewValue>
18-
And the user saves the changes
19-
Then the Accession is updated with the new <Field> as <NewValue>
20-
And the 'Accession updated' message is displayed
21-
And the updated value appears in the accession details
17+
When the user changes the <Field> field to <NewValue>
18+
And the user saves the changes
19+
Then the Accession is updated with the new <Field> as <NewValue>
20+
And the 'Accession updated' message is displayed
21+
And the updated value appears in the accession details
2222
Examples:
2323
| Field | NewValue |
2424
| Title | Updated Test Accession |
2525
| Date | 2024-10-03 |
2626
Scenario: Accession is not updated after changes are reverted
2727
Given the Accession is opened in edit mode
28-
When the user changes the 'Title' field
29-
And the user clicks on 'Revert changes'
30-
Then the Accession is not updated
31-
And the 'Title' field still shows the original title
28+
When the user changes the 'Title' field
29+
And the user clicks on 'Revert changes'
30+
Then the Accession is not updated
31+
And the 'Title' field still shows the original title
3232
Scenario: Accession update fails due to invalid date input
3333
Given the Accession is opened in edit mode
34-
When the user changes the 'Date' field to '2024-13-15'
35-
And the user saves the changes
36-
Then the following error message is displayed
37-
| Accession Date - Not a valid date |
38-
And the Accession is not updated
39-
And the 'Date' field still shows the original date
34+
When the user changes the 'Date' field to '2024-13-15'
35+
And the user saves the changes
36+
Then the following error message is displayed
37+
| Accession Date - Not a valid date |
38+
And the Accession is not updated
39+
And the 'Date' field still shows the original date
4040
Scenario: Accession update succeeds for User A with a warning for other user editing it
4141
Given the Accession is opened in edit mode by User A
42-
And the Accession is also opened in edit mode by User B
43-
When User A changes the 'Title' field
44-
And User A saves the changes
45-
Then the 'Accession updated' message is displayed
46-
And User A sees the following conflict message
47-
| This record is currently being edited by another user. Please contact the following users to ensure no conflicts occur: B |
42+
And the Accession is also opened in edit mode by User B
43+
When User A changes the 'Title' field
44+
And User A saves the changes
45+
Then the 'Accession updated' message is displayed
46+
And User A sees the following conflict message
47+
| This record is currently being edited by another user. Please contact the following users to ensure no conflicts occur: B |
4848
Scenario: Accession update fails due to concurrent edit by another user
4949
Given the Accession is opened in edit mode by User A
50-
And the Accession is also opened in edit mode by User B
51-
When User A changes the 'Title' field and saves the changes
52-
And User B changes the 'Title' field and saves the changes
53-
Then User B sees the following conflict message
54-
| Failed to save your changes - This record has been updated by another user. Please refresh the page to access the latest version.|
50+
And the Accession is also opened in edit mode by User B
51+
When User A changes the 'Title' field and saves the changes
52+
And User B changes the 'Title' field and saves the changes
53+
Then User B sees the following conflict message
54+
| Failed to save your changes - This record has been updated by another user. Please refresh the page to access the latest version.|
5555
Scenario: Accession update fails due to missing required field
5656
Given the Accession is opened in edit mode
57-
When the user clears the 'Identifier' field
58-
And the user saves the changes
59-
Then the following error message is displayed
60-
| Identifier - Property is required but was missing |
61-
And the Accession is not updated
57+
When the user clears the 'Identifier' field
58+
And the user saves the changes
59+
Then the following error message is displayed
60+
| Identifier - Property is required but was missing |
61+
And the Accession is not updated
6262
Scenario: User is warned about unsaved changes when navigating away
6363
Given the Accession is opened in edit mode
64-
When the user changes the 'Title' field
65-
And the user attempts to navigate away without saving
66-
Then a confirmation dialog is displayed asking if the user wants to leave the site with unsaved changes
67-
When the user chooses to leave the page
68-
Then the Accession is not updated
64+
When the user changes the 'Title' field
65+
And the user attempts to navigate away without saving
66+
Then a confirmation dialog is displayed asking if the user wants to leave the site with unsaved changes
67+
When the user chooses to leave the page
68+
Then the Accession is not updated

0 commit comments

Comments
 (0)