-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e79511
commit a5a7adf
Showing
2 changed files
with
5 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 2 additions & 18 deletions
20
staff_features/resources/resource_update_basic_information.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
Given 'a resource has been created' do | ||
Given 'a Resource has been created' do | ||
@uuid = SecureRandom.uuid | ||
|
||
visit "#{STAFF_URL}/resources/new" | ||
|
||
create_resource(@uuid) | ||
end | ||
|
||
Given 'the user is on the resource edit page' do | ||
Given 'the user is on the Resource edit page' do | ||
search(@uuid) | ||
|
||
click_on 'Edit' | ||
end | ||
|
||
When 'the user changes the resource Title' do | ||
fill_in 'resource_title_', with: 'Resource title chagned' | ||
end | ||
|
||
When 'the user changes the resource Identifier' do | ||
fill_in 'resource_id_0_', with: 'Resource identifier chagned' | ||
end | ||
|
||
Then 'Repository Processing Note has value {string}' do |value| | ||
expect(find('#resource_repository_processing_note_').value).to eq value | ||
end | ||
|
||
Then('the resource Title does not change') do | ||
expect(find('#resource_title_').value).to eq "Resource #{@uuid}" | ||
end | ||
|
||
Then('the resource Identifier does not change') do | ||
expect(find('#resource_id_0_').value).to eq "Resource #{@uuid}" | ||
end |