Skip to content

Commit a9759e1

Browse files
Clear field step definition
1 parent 4313379 commit a9759e1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

staff_features/accessions/accession_edit.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Feature: Accession Edit
5050
| Failed to save your changes - This record has been updated by another user. Please refresh the page to access the latest version.|
5151
Scenario: Accession update fails due to missing required field
5252
Given the Accession is opened in edit mode
53-
When the user fills in 'Identifier' with ''
53+
When the user clears the 'Identifier' field
5454
And the user clicks on 'Save'
5555
Then the following error message is displayed
5656
| Identifier - Property is required but was missing |

staff_features/shared/step_definitions.rb

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
fill_in label, with: @uuid
3232
end
3333

34+
When 'the user clears the {string} field' do |label|
35+
fill_in label, with: ''
36+
end
37+
3438
When 'the user fills in {string} with {string}' do |label, value|
3539
fill_in label, with: value
3640
end

0 commit comments

Comments
 (0)