spec/features/activity_logs/data_point_uris_spec.rb
# NOTE - we don't check for the user/taxon values In the feed, because they might have been doing something else, elsewhere.
we don't check for the user/taxon values In the feed, because they might have been doing something else, elsewhere.
we don ' t check for the user / taxon values In the feed because they might have been doing something else elsewhere .
def expect_no_data_feed
    unless page.body =~ /#{I18n.t(:activity_log_empty)}/ or
           page.body =~ /#{I18n.t(:no_record_found_matching_your_criteria)}/
      if page.body =~ data_activity_re
        save_and_open_page
        debugger 
      end
      expect(page).to_not have_tag('p', text: data_activity_re)
      expect(page).to_not have_tag('blockquote', text: data_details_re)
    end
  end
def expect_no_data_feed unless page . body =~ / #{ I18n . t ( :activity_log_empty ) } / or page . body =~ / #{ I18n . t ( :no_record_found_matching_your_criteria ) } / if page . body =~ data_activity_re save_and_open_page debugger end expect ( page ) . to_not have_tag ( 'p' , text : data_activity_re ) expect ( page ) . to_not have_tag ( 'blockquote' , text : data_details_re ) end end
NOTE - we don't check for the user/taxon values In the feed, because they might have been doing something else, elsewhere.
NOTE - we don ' t check for the user / taxon values In the feed because they might have been doing something else elsewhere .
# Test passes if there's no activity at all: # This happens VERY rarely, and I can't imagine what's gone wrong. Last time it was on the taxon_updates page.