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

- old
+ new

@@ -51,14 +51,17 @@ 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) + # 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 - expect(page).to have_content collection.title.first + 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