diff --git a/frontend/app/views/collection_management/_show.html.erb b/frontend/app/views/collection_management/_show.html.erb index a16602b9c6..cd283dbb62 100644 --- a/frontend/app/views/collection_management/_show.html.erb +++ b/frontend/app/views/collection_management/_show.html.erb @@ -7,7 +7,7 @@
- -
+
<%= read_only_view(collection_management) %> diff --git a/frontend/spec/features/collection_management_spec.rb b/frontend/spec/features/collection_management_spec.rb index 1ec7fa4dbe..ff0c91f048 100644 --- a/frontend/spec/features/collection_management_spec.rb +++ b/frontend/spec/features/collection_management_spec.rb @@ -23,6 +23,30 @@ expect(page).to have_text 'No records found' end + it 'provides a keyboard-operable accordion control on the accession show page' do + accession = create( + :accession, + collection_management: { + "processing_priority" => "high" + } + ) + + begin + visit "/accessions/#{accession.id}" + + within '#accession_collection_management_' do + toggle = find('.accordion-toggle') + expect(toggle.tag_name).to eq('button') + expect(toggle[:type]).to eq('button') + expect(toggle[:'data-target']).to eq('#accession_collection_management__collection_management') + expect(toggle[:'aria-controls']).to eq('accession_collection_management__collection_management') + end + ensure + accession.delete + run_index_round + end + end + it 'is browseable even when its linked accession has no title' do now = Time.now.to_i