Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 802ac10

Browse files
Fix resource edit step definition
1 parent 34173f7 commit 802ac10

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

helpers/helpers.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ def create_resource(uuid)
166166

167167
expect(page).to have_text "Resource Resource #{uuid} created"
168168

169+
uri_parts = current_url.split('/')
170+
uri_parts.pop
171+
@resource_id = uri_parts.pop
172+
169173
create_resource_archival_object(uuid)
170174
end
171175

staff_features/resources/resource_update_basic_information.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
end
88

99
Given 'the user is on the Resource edit page' do
10-
search(@uuid)
11-
12-
click_on 'Edit'
10+
visit "#{STAFF_URL}/resources/#{@resource_id}/edit"
1311
end
1412

1513
Then 'Repository Processing Note has value {string}' do |value|

0 commit comments

Comments
 (0)