around_filter :set_thread_api_token
# Methods that don't require login should
# skip_around_filter :require_thread_api_token
- around_filter :require_thread_api_token, except: ERROR_ACTIONS
+ around_filter :require_thread_api_token, except: [:report_issue_popup, :report_issue] + ERROR_ACTIONS
before_filter :accept_uuid_as_id_param, except: ERROR_ACTIONS
- before_filter :check_user_agreements, except: ERROR_ACTIONS
+ before_filter :check_user_agreements, except: [:report_issue_popup, :report_issue] + ERROR_ACTIONS
before_filter :check_user_profile, except: [:update_profile] + ERROR_ACTIONS
before_filter :check_user_notifications, except: ERROR_ACTIONS
before_filter :load_filters_and_paging_params, except: ERROR_ACTIONS
end
# test the help menu
- def check_help_menu user
+ def check_help_menu
within('.navbar-fixed-top') do
page.find("#arv-help").click
within('.dropdown-menu') do
end
end
- if user && user['is_active'] # TBD - no user as well as inactive user also should be able to report issue
within '.modal-content' do
assert page.has_text? 'Version / debugging info'
assert page.has_no_text? 'Report a problem'
page.find_field('report_text').set 'my test report text'
click_button 'Report issue'
end
- end # TBD - when no user and inactive user work, this should go away
assert page.has_no_text? 'Version / debugging info'
end
visit page_with_token(token)
end
- check_help_menu user
+ check_help_menu
end
end