277. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/7/2018 11:36:07 AM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

277.1 Files compared

# Location File Last Modified
1 C:\SCRUB\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\test\watir-ruby\spec\common_fucntionality list_of_clinics_spec.rb Mon Oct 22 23:25:20 2018 UTC
2 C:\MHED-scrubbed\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\test\watir-ruby\spec\common_fucntionality list_of_clinics_spec.rb Fri Dec 7 13:25:52 2018 UTC

277.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 354
Changed 2 4
Inserted 0 0
Removed 0 0

277.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

277.4 Active regular expressions

No regular expressions were active.

277.5 Comparison detail

  1   require 'r ubygems'
  2   require 'r spec'
  3   require 'w atir-webdr iver'
  4   require 'p age-object '
  5   require 'o ci8'
  6   require 'w atir-scrol l'
  7  
  8   require_re lative '.. /../module /DriverUti lity'
  9   require_re lative '.. /rspec_hel per'
  10   require_re lative '.. /../pages/ landing'
  11   require_re lative '.. /../pages/ login'
  12   require_re lative '.. /../pages/ eula'
  13   require_re lative '.. /../common /common'
  14   require_re lative '.. /../pages/ landing_ap pointments '
  15   require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest'
  16   require_re lative '.. /../pages/ appointmen ts/booked_ appointmen t_detail'
  17   require_re lative '.. /../helper /modal'
  18   require_re lative '.. /../module /database/ OracleUtil ity'
  19   require_re lative '.. /../module /DateUtili ty'
  20   require_re lative '.. /../common /cancel_ap pointment'
  21   require_re lative '.. /../helper /error_val idation'
  22   require_re lative '.. /../module /database/ MongoUtili ty'
  23   require_re lative '.. /../pages/ feedback'
  24  
  25   describe ' [STORY# VA R-9703: Di splay numb er of avai lable slot s after cl inic has b een select ed]' do
  26  
  27     include  DriverUtil ity
  28     include  OracleUtil ity
  29     include  DateUtilit y
  30     include  MongoUtili ty
  31  
  32  
  33     before(: all) do
  34       initia lizeConfig urations(V AR_BASE_UR L)
  35       @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver)
  36       @login  = Login.n ew(@driver )
  37       @eula  = Eula.new (@driver)
  38       @commo n = Common .new(@driv er)
  39       @modal  = Modal.n ew(@driver )
  40       @new_a ppointment  = NewAppo intmentReq uest.new(@ driver)
  41       @detai l = Booked Appointmen tDetail.ne w(@driver)
  42       @error  = Error_V alidation. new(@drive r)
  43       @feedb ack = Feed back.new(@ driver)
  44       TITLE  = "Appoint ments/Requ ests"
  45  
  46       @tomor row = getD ateNthDays FromNow(1,  "%m/%d/%Y ")
  47       @seven DaysFromNo w = getDat eNthDaysFr omNow(7, " %m/%d/%Y")
  48  
  49       #mongo
  50       @db =  connectToM ongoDB("va r-utility" )
  51       restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s iteSupport ingMissing Location.j son", @db)
  52       restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db )
  53       restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db)
  54       restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "primar yCareDirec tSchedulin gNewSettin gs.json",  @db)
  55       restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db)
  56       restor eCollectio n("custom- friendly-t ext", "var -utility",  "facility _friendly_ name.json" , @db)
  57       delete PatientDat a("1113138 327")
  58       @@time Slot = "08 :00"
  59       @clini c ="ZZBO M ED CLINIC"
  60       @locat ion = "BOS TON HCS VA MC"
  61       ## The  clinic na me is diff  in cdw v/ s mdws but  in real w orld its s ame per Ch ris. We ma y need to  update thi s test onc e clinic n ame
  62       # for  details, l ist and ap pointment  form is be ing pulled  from same  place
  63       #@clin ic = "BOPA CTB1"
  64  
  65         @cancel_ap pointment  = CancelAp pointment. new("CLINI C_BASED_BO STON", "52 3","#{ pw_reda c t e d ['userid'] }")
  66       @cance l_appointm ent.update _appointme nt_obj("ap pointmentT ime", "#{@ sevenDaysF romNow} 08 :00:00")
  67       @cance l_appointm ent.update _appointme nt_obj("cl inicId", " 496")
  68       @cance l_appointm ent.update _appointme nt_obj("cl inicName",  "TESTCLIN IC056")
  69       @cance l_appointm ent.cancel _appointme nt()
  70  
  71       delete PatientDat a("1113138 327")
  72         @common.lo ginEndsOnH ome( pw_reda c t e d )
  73  
  74     end
  75  
  76     after(:a ll) do
  77       @drive r.close
  78     end
  79  
  80     context  '[AC#VAR-9 716|TC#VAR -9717: Dis play numbe r of avail able slots  after cli nic has be en selecte d]' do
  81       it 'Na vigate to  Create new  appointme nt details  section'  do
  82         @com mon.select AddAppoint mentButton ("VA")
  83         @new _appointme nt.selectN ewAppointm entAndSche dule(PRIMA RY_CARE, " 523", "523 ", "direct ")
  84         @new _appointme nt.selectC linic("32" )
  85         @new _appointme nt.provide ReasonForA ppointment ("This is  new Primar y Care Req uest")
  86         @new _appointme nt.selectP referedDat e(@sevenDa ysFromNow,  "11:00")
  87         @new _appointme nt.enterEm ail("testP C@test.com ")
  88         @new _appointme nt.selectC linic("444 ")
  89         @com mon.waitWh ileSpinner Present()
  90         expe ct(@new_ap pointment. reason_ele ment.text) .to eq("Th is is new  Primary Ca re Request ")
  91       end
  92  
  93       it "sh ould verif y new clin ic list(1)  is loaded  when 'typ e of care'  is swicth ed" do
  94         @new _appointme nt.selectN ewAppointm entAndSche dule(MENTA L_HEALTH,  "523", "52 3", "direc t")
  95         clin icInfo0 =  ["BO C&P M H PSO HOUG H"]
  96         clin icGroup0 =  @new_appo intment.cl inic_group _elements[ 0].text.sp lit("\n")
  97         comp areContent s(clinicIn fo0, clini cGroup0)
  98       end
  99  
  100       it "sh ould verif y new clin ic list(2)  is loaded  when 'typ e of care'  is swicth ed" do
  101         clin icInfo1 =  ["BO MH TE LEHEALTH P SYCHOPHARM "]
  102         clin icGroup1 =  @new_appo intment.cl inic_group _elements[ 1].text.sp lit("\n")
  103         comp areContent s(clinicIn fo1, clini cGroup1)
  104       end
  105  
  106       it "sh ould verif y new clin ic list(3)  is loaded  when 'typ e of care'  is swicth ed" do
  107         clin icInfo2 =  ["ZZBO MED  CLINIC"]
  108         clin icGroup2 =  @new_appo intment.cl inic_group _elements[ 2].text.sp lit("\n")
  109         comp areContent s(clinicIn fo2, clini cGroup2)
  110       end
  111  
  112       it "Ve rify No av ailable sl ots pop up  modal whe n clinic w ith no slo ts is sele cted" do
  113         @new _appointme nt.selectC linic("17" )
  114         @mod al.modalTi tle_elemen t.wait_unt il_present (TIME_OUT_ LIMIT)
  115         expe ct(@modal. modalTitle _element.t ext).to eq  "No Avail able Appoi ntments"
  116         expe ct(@modal. content_el ement.text ).to eq 'U nfortunate ly, there  are no ava ilable tim e slots at  this clin ic. Please  select an other clin ic or chan ge your sc heduling m ethod to " Submit a R equest to  VA Schedul er.”'
  117       end
  118  
  119       it "Ve rify selec ting clini c loads ap pointment  details op tions" do
  120         @mod al.buttons _elements[ 0].click
  121         @new _appointme nt.selectC linic("433 ")
  122         @new _appointme nt.provide ReasonForA ppointment ("schedule  appointme nt with a  clinic cha nge")
  123         @new _appointme nt.selectP referedDat e(@sevenDa ysFromNow,  @@timeSlo t)
  124         @new _appointme nt.enterEm ail("testP C@test.com ")
  125         @new _appointme nt.selectC linic("496 ")
  126         @com mon.waitWh ileSpinner Present()
  127         @new _appointme nt.clickSc heduleAppo intment
  128         veri fyErrorMes sage("Pref erred Date  field is  required." )
  129       end
  130  
  131       it "Ve rify selec t date is  required i s not disp layed" do
  132         expe ct(verifyE rrorMessag e("Select  Date/Time  field is r equired.") ).to eq(fa lse)
  133       end
  134  
  135  
  136       it "Ve rify selec ted slot t ext is not  visible"  do
  137         reas on_field =  @new_appo intment.sc hedule_app ointment_e lement
  138         reas on_field.s croll.to : top
  139         expe ct(@new_ap pointment. verifySele ctedSlotTx t).to eq(f alse)
  140       end
  141  
  142       it "sh ould verif y Schedule  appointme nt is succ essfull" d o
  143         @new _appointme nt.selectP referedDat e(@sevenDa ysFromNow,  @@timeSlo t)
  144         @@se tDate = Ne wAppointme ntRequest. bookedDate
  145         @new _appointme nt.clickSc heduleAppo intment
  146         @com mon.waitWh ileSpinner Present()
  147         @det ail.appoin tment_deta ils_group_ element.wh en_present (TIME_OUT_ LIMIT)
  148         expe ct(@detail .appointme nt_status_ group_elem ent.text). to eq("Sta tus:  Sche duled")
  149       end
  150  
  151       it "Sh ould verif y Provide  Feedback l ink is dis played on  Submission  Confirmat ion page"  do
  152         expe ct(@detail .feedbackL ink_elemen t.text).to  eq("Provi de feedbac k on this  submission .")
  153       end
  154  
  155       it "Sh ould verif y appointm ent detail s for date /time, cli nic and Re ason for A ppointment " do
  156         @@se lectedDay  = getDayof Week(@@set Date)
  157         @@ti meSlot = @ @timeSlot. gsub!(':',  '')
  158         expe cted_text  = [\
  159              "Date and  Time:" + "  #{@@selec tedDay},"  + " #{@@se tDate}",
  160              "Date:" +  " #{@@sele ctedDay}," + " #{@@se tDate}",
  161              @@timeSlot ,
  162              "Time: #{@ @timeSlot. gsub("", "  ")}",
  163              "Add to Ca lendar",
  164              "Details:  " + "#{@lo cation}",
  165              "#{@clinic }",
  166              "Please ar rive 30 mi nutes befo re your sc heduled ti me unless  otherwise  directed.  VA Facilit y Locator" ,
  167              "Cancel Ap pointment" ,
  168              "Reason fo r Appointm ent: sched ule appoin tment with  a clinic  change"
  169         ]
  170         actu al_text =  @detail.ap pointment_ details_gr oup_elemen t.text.spl it("\n")
  171         actu al_text =  actual_tex t.reject {  |c| c.emp ty? }
  172         expe cted_text. each_with_ index do |  expectedS creenRow,  i |
  173           ex pect(actua l_text[i]. gsub(/\s+/ , '')).to  eq(expecte dScreenRow .gsub(/\s+ /, ''))
  174         end
  175       end
  176  
  177     end
  178   end
  179