File tree Expand file tree Collapse file tree 2 files changed +5
-28
lines changed Expand file tree Collapse file tree 2 files changed +5
-28
lines changed Original file line number Diff line number Diff line change 1
1
Feature : Resource Update Basic Information
2
2
Background :
3
3
Given an administrator user is logged in
4
- And a resource has been created
5
- Scenario : Successfully update resource basic information
6
- Given the user is on the resource edit page
4
+ And a Resource has been created
5
+ Scenario : Update basic information fields for a Resource
6
+ Given the user is on the Resource edit page
7
7
When the user selects 'Records' from "Resource Type"
8
8
And the user checks 'Publish?'
9
9
And the user checks 'Restrictions Apply?'
@@ -14,10 +14,3 @@ Feature: Resource Update Basic Information
14
14
And the 'Publish?' is checked
15
15
And the 'Restrictions Apply?' is checked
16
16
And the 'Repository Processing Note' has value 'VTF #3810'
17
- Scenario : Revert changes
18
- Given the user is on the resource edit page
19
- When the user changes the resource Title
20
- And the user changes the resource Identifier
21
- And the user clicks on 'Revert Changes'
22
- Then the resource Title does not change
23
- And the resource Identifier does not change
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
- Given 'a resource has been created' do
3
+ Given 'a Resource has been created' do
4
4
@uuid = SecureRandom . uuid
5
5
6
6
visit "#{ STAFF_URL } /resources/new"
7
7
8
8
create_resource ( @uuid )
9
9
end
10
10
11
- Given 'the user is on the resource edit page' do
11
+ Given 'the user is on the Resource edit page' do
12
12
search ( @uuid )
13
13
14
14
click_on 'Edit'
15
15
end
16
16
17
- When 'the user changes the resource Title' do
18
- fill_in 'resource_title_' , with : 'Resource title chagned'
19
- end
20
-
21
- When 'the user changes the resource Identifier' do
22
- fill_in 'resource_id_0_' , with : 'Resource identifier chagned'
23
- end
24
-
25
17
Then 'Repository Processing Note has value {string}' do |value |
26
18
expect ( find ( '#resource_repository_processing_note_' ) . value ) . to eq value
27
19
end
28
-
29
- Then ( 'the resource Title does not change' ) do
30
- expect ( find ( '#resource_title_' ) . value ) . to eq "Resource #{ @uuid } "
31
- end
32
-
33
- Then ( 'the resource Identifier does not change' ) do
34
- expect ( find ( '#resource_id_0_' ) . value ) . to eq "Resource #{ @uuid } "
35
- end
You can’t perform that action at this time.
0 commit comments