Skip to content

Commit 5f2b450

Browse files
Digital object create assessment
1 parent 0295586 commit 5f2b450

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
@@ -57,3 +57,16 @@
5757

5858
expect(page).to have_field('Identifier', with: "Digital Object Identifier #{@uuid}")
5959
end
60+
61+
Then 'the Assessment is linked to the Digital Object in the {string} form' do |form_title|
62+
section_title = find('h3', text: form_title)
63+
section = section_title.ancestor('section')
64+
expect(section[:id]).to_not eq nil
65+
66+
related_accessions_elements = section.all('li.token-input-token')
67+
68+
expect(related_accessions_elements.length).to eq 1
69+
related_accession = related_accessions_elements[0].find('.digital_object')
70+
71+
expect(related_accession[:'data-content']).to include "digital_objects/#{@digital_object_id}"
72+
end

0 commit comments

Comments
 (0)