Skip to content

Commit 49c869d

Browse files
Digital object create assessment
1 parent ec090bb commit 49c869d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

staff_features/digital_objects/digital_object_create_assessment.feature

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ Feature: Digital Object create Assessment
88
And the user clicks on 'Create Assessment'
99
Then the New Assessment page is displayed
1010
And the Assessment is linked to the Digital Object in the 'Basic Information' form
11-

staff_features/digital_objects/step_definitions/digital_object_shared.rb

+13
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,16 @@
135135

136136
expect(subrecords.length).to eq @digital_object_number_of_file_versions - 1
137137
end
138+
139+
Then 'the Assessment is linked to the Digital Object in the {string} form' do |form_title|
140+
section_title = find('h3', text: form_title)
141+
section = section_title.ancestor('section')
142+
expect(section[:id]).to_not eq nil
143+
144+
related_accessions_elements = section.all('li.token-input-token')
145+
146+
expect(related_accessions_elements.length).to eq 1
147+
related_accession = related_accessions_elements[0].find('.digital_object')
148+
149+
expect(related_accession[:'data-content']).to include "digital_objects/#{@digital_object_id}"
150+
end

0 commit comments

Comments
 (0)