Skip to content

Commit a5a7adf

Browse files
Update resources features
1 parent 4e79511 commit a5a7adf

File tree

2 files changed

+5
-28
lines changed

2 files changed

+5
-28
lines changed
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Feature: Resource Update Basic Information
22
Background:
33
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
77
When the user selects 'Records' from "Resource Type"
88
And the user checks 'Publish?'
99
And the user checks 'Restrictions Apply?'
@@ -14,10 +14,3 @@ Feature: Resource Update Basic Information
1414
And the 'Publish?' is checked
1515
And the 'Restrictions Apply?' is checked
1616
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
Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
11
# frozen_string_literal: true
22

3-
Given 'a resource has been created' do
3+
Given 'a Resource has been created' do
44
@uuid = SecureRandom.uuid
55

66
visit "#{STAFF_URL}/resources/new"
77

88
create_resource(@uuid)
99
end
1010

11-
Given 'the user is on the resource edit page' do
11+
Given 'the user is on the Resource edit page' do
1212
search(@uuid)
1313

1414
click_on 'Edit'
1515
end
1616

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-
2517
Then 'Repository Processing Note has value {string}' do |value|
2618
expect(find('#resource_repository_processing_note_').value).to eq value
2719
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

0 commit comments

Comments
 (0)