spec/features/collection_spec.rb in curation_concerns-1.5.0 vs spec/features/collection_spec.rb in curation_concerns-1.6.0

- old
+ new

@@ -84,10 +84,11 @@ it 'shows a collection with a listing of Descriptive Metadata and catalog-style search results' do expect(page).to have_content 'Test collection title' within('#document_' + collection.id) do click_link('collection title') end + expect(page).to have_selector '.sr-only', text: 'Search Collection Test collection title', visible: false expect(page).to have_content 'Test collection title' expect(page).to have_content 'collection description' # Should have search results / contents listing expect(page).to have_content(gw1.title.first) expect(page).to have_content(gw2.title.first) @@ -163,9 +164,10 @@ it 'removes a work from a collection from edit page' do expect(page).to have_content 'Test collection title' within("#document_#{collection.id}") do click_link('Edit Collection') end + expect(page).to have_field 'collection_title', with: 'Test collection title' expect(page).to have_field 'collection_description', with: 'collection description' expect(page).to have_content(gw1.title.first) expect(page).to have_content(gw2.title.first) within("#document_#{gw1.id}") do