Skip to content

Commit

Permalink
Fix broken complete_intake_spec (#4377)
Browse files Browse the repository at this point in the history
Co-authored-by: Martha Pidcock <mpidcock@codeforamerica.org>
Co-authored-by: Tahsina Islam <tislam@codeforamerica.org>
  • Loading branch information
3 people committed Mar 18, 2024
1 parent 30df4ab commit 8d0445b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/controllers/flows_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ def self.ny_attributes(first_name: 'Testuser', last_name: 'Testuser')
permanent_city: "New York",
permanent_street: "321 Peanut Way",
permanent_zip: "11102",
phone_number: "+14153334444",
phone_number_verified_at: 1.minute.ago,
email_address: "user@codeforamerica.org",
email_address_verified_at: 1.minute.ago,
primary_birth_date: Date.parse('1978-06-21'),
primary_first_name: first_name,
primary_last_name: last_name,
Expand Down
3 changes: 1 addition & 2 deletions spec/features/state_file/complete_intake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

before do
allow_any_instance_of(Routes::StateFileDomain).to receive(:matches?).and_return(true)
Flipper.enable :sms_notifications
end

context "NY", :flow_explorer_screenshot, js: true do
Expand All @@ -19,7 +18,7 @@

step_through_eligibility_screener(us_state: "ny")

step_through_initial_authentication(contact_preference: :text_message)
step_through_initial_authentication(contact_preference: :email)

expect(page).to have_text I18n.t('state_file.questions.terms_and_conditions.edit.title')
click_on I18n.t("state_file.questions.terms_and_conditions.edit.accept")
Expand Down

0 comments on commit 8d0445b

Please sign in to comment.