spec/features/work_show_spec.rb in hyrax-3.0.0.pre.beta2 vs spec/features/work_show_spec.rb in hyrax-3.0.0.pre.beta3

- old
+ new

@@ -45,23 +45,27 @@ within '.related-files' do expect(page).to have_selector '.attribute-filename', text: 'A Contained FileSet' end # IIIF manifest does not include locale query param - expect(find('div.viewer:first')['data-uri']).to eq "http://www.example.com/concern/generic_works/#{work.id}/manifest" + expect(find('div.viewer-wrapper iframe')['src']).to eq( + "http://www.example.com/uv/uv.html#?manifest=" \ + "http://www.example.com/concern/generic_works/#{work.id}/manifest&" \ + "config=http://www.example.com/uv/uv-config.json" + ) end it "allows adding work to a collection", clean_repo: true, js: true do - optional 'ability to get capybara to find css select2-result (see Issue #3038)' if ci_build? click_button "Add to collection" # opens the modal # Really ensure that this Collection model is persisted Collection.all.map(&:destroy!) persisted_collection = create(:collection_lw, user: user, collection_type_gid: multi_membership_type_1.gid) select_member_of_collection(persisted_collection) click_button 'Save changes' # forwards to collection show page + sleep 5 expect(page).to have_content persisted_collection.title.first expect(page).to have_content work.title.first expect(page).to have_selector '.alert-success', text: 'Collection was successfully updated.' end end @@ -101,15 +105,15 @@ expect(page).not_to have_link 'Delete' expect(page).to have_selector 'button', text: 'Add to collection', count: 1 end it "allows adding work to a collection", clean_repo: true, js: true do - optional 'ability to get capybara to find css select2-result (see Issue #3038)' if ci_build? click_button "Add to collection" # opens the modal select_member_of_collection(collection) click_button 'Save changes' # forwards to collection show page + sleep 5 expect(page).to have_content collection.title.first expect(page).to have_content work.title.first expect(page).to have_selector '.alert-success', text: 'Collection was successfully updated.' end end