Skip to content

Commit

Permalink
remove click_away_from_field to get spec to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
mercedesb committed Jan 10, 2025
1 parent e228a8b commit 5db331b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/system/update_patient_info_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class UpdatePatientInfoTest < ApplicationSystemTestCase
describe 'updating name' do
before do
fill_in 'First and last name', with: 'Susie Everyteen 2'
click_away_from_field
wait_for_ajax
reload_page_and_click_link 'Patient Information'
end
Expand Down Expand Up @@ -75,7 +74,6 @@ class UpdatePatientInfoTest < ApplicationSystemTestCase
describe 'updating appointment date' do
before do
fill_in 'Appointment date', with: 5.days.from_now.strftime('%m/%d/%Y')
click_away_from_field
wait_for_ajax
reload_page_and_click_link 'Patient Information'
end
Expand Down Expand Up @@ -108,7 +106,6 @@ class UpdatePatientInfoTest < ApplicationSystemTestCase
describe 'updating phone number' do
before do
fill_in 'Phone number', with: '123-666-8888'
click_away_from_field
wait_for_ajax
reload_page_and_click_link 'Patient Information'
end
Expand All @@ -123,7 +120,6 @@ class UpdatePatientInfoTest < ApplicationSystemTestCase
describe 'updating pronouns' do
before do
fill_in 'Pronouns', with: 'they/them'
click_away_from_field
wait_for_ajax
reload_page_and_click_link 'Patient Information'
end
Expand Down Expand Up @@ -364,7 +360,6 @@ class UpdatePatientInfoTest < ApplicationSystemTestCase
private

def reload_page_and_click_link(link_text)
click_away_from_field
visit authenticated_root_path
visit edit_patient_path @patient
click_link link_text
Expand Down

0 comments on commit 5db331b

Please sign in to comment.