This attempts to generate an intake so you can test specific pages. It might not work perfectly.
Showing all pages.
def self.show?(intake) intake.contact_preference == "text" end
def self.show?(intake) intake.contact_preference == "email" end
def self.show?(intake) intake.phone_number? end
def self.show?(intake) intake.consented_to_terms_and_conditions_no? || intake.consented_to_sms_terms_no? end
def self.show?(_intake) false end
def self.show?(_intake) false end
def self.show?(intake) intake.disqualifying_df_data_reason.present? end
def self.show?(intake) intake.dependents.count(&:ask_senior_questions?).positive? end
def self.show?(intake) intake.state_file_w2s.present? || intake.direct_file_data.fed_unemployment.positive? || intake.state_file1099_rs.present? || intake.direct_file_json_data.interest_reports.count.positive? || intake.direct_file_data.fed_ssb.positive? || intake.direct_file_data.fed_taxable_ssb.positive? end
def self.show?(intake) fed_unemployment = intake.direct_file_data.fed_unemployment fed_unemployment.present? && fed_unemployment > 0 end
def self.show?(intake) fed_unemployment = intake.direct_file_data.fed_unemployment fed_unemployment.present? && fed_unemployment > 0 end
def self.show?(intake) intake.charitable_contributions_yes? && intake.charitable_cash_amount.positive? end
def self.show?(intake) intake.charitable_contributions_yes? && intake.charitable_cash_amount.positive? end
def self.show?(intake) wages_salaries_tips = intake.direct_file_data.fed_wages_salaries_tips wages_salaries_tips.present? && wages_salaries_tips > 0 end
def self.show?(intake) !intake.disqualified_from_excise_credit_df? end
def self.show?(intake) intake.filing_status_mfj? end
def self.show?(intake) intake.calculated_refund_or_owed_amount.negative? # what happens if zero? end
def self.show?(intake) intake.calculated_refund_or_owed_amount.positive? end