267. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/7/2018 11:36:06 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.

267.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\appointments new_appointment_confirmation_friendly_facility_name_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\appointments new_appointment_confirmation_friendly_facility_name_spec.rb Fri Dec 7 13:25:48 2018 UTC

267.2 Comparison summary

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

267.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

267.4 Active regular expressions

No regular expressions were active.

267.5 Comparison detail

  1   #!/bin/env  ruby
  2   # encoding : utf-8
  3   require 'r ubygems'
  4   require 'r spec'
  5   require 'w atir-webdr iver'
  6   require 'p age-object '
  7   require 'o ci8'
  8  
  9   require_re lative '.. /../module /DriverUti lity'
  10   require_re lative '.. /rspec_hel per'
  11   require_re lative '.. /../pages/ landing'
  12   require_re lative '.. /../pages/ login'
  13   require_re lative '.. /../pages/ eula'
  14   require_re lative '.. /../common /common'
  15   require_re lative '.. /../pages/ landing_ap pointments '
  16   require_re lative '.. /../common /cancel_ap pointment'
  17   require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest'
  18   require_re lative '.. /../pages/ appointmen ts/booked_ appointmen t_detail'
  19   require_re lative '.. /../helper /modal'
  20   require_re lative '.. /../module /database/ OracleUtil ity'
  21   require_re lative '.. /../module /DateUtili ty'
  22   require_re lative '.. /../helper /error_val idation'
  23   require_re lative '.. /../module /database/ MongoUtili ty'
  24   require_re lative '.. /../pages/ feedback'
  25   require_re lative '.. /../pages/ landing_no tification s'
  26  
  27   describe ' [Story# VA R-7749: Di rect Sched uling Conf irmation P age:  Upda te to show  facility  location]
  28              [Story# VA R-10186: V AR & Utili ty Integra tion - Dir ect Schedu ling - New  Appointme nt Form -  Location s election]'  do
  29  
  30     include  DriverUtil ity
  31     include  OracleUtil ity
  32     include  DateUtilit y
  33     include  MongoUtili ty
  34  
  35  
  36     before(: all) do
  37       initia lizeConfig urations(V AR_BASE_UR L)
  38       @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver)
  39       @login  = Login.n ew(@driver )
  40       @eula  = Eula.new (@driver)
  41       @commo n = Common .new(@driv er)
  42       @modal  = Modal.n ew(@driver )
  43       @new_a ppointment  = NewAppo intmentReq uest.new(@ driver)
  44       @detai l = Booked Appointmen tDetail.ne w(@driver)
  45       @error  = Error_V alidation. new(@drive r)
  46       @feedb ack = Feed back.new(@ driver)
  47       @landi ng_notific ations = L andingNoti fications. new(@drive r)
  48       TITLE  = "Appoint ments/Requ ests"
  49  
  50       @tomor row = getD ateNthDays FromNow(1,  "%m/%d/%Y ")
  51       @twent yoneDaysLa ter = getD ateNthDays FromNow(21 , "%m/%d/% Y")
  52       @fourt eenDaysLat er = getDa teNthDaysF romNow(14,  "%m/%d/%Y ")
  53       @ninty DaysLater  = getDateN thDaysFrom Now(90, "% m/%d/%Y")
  54       #cance l appointm ent
  55         @cancel_ap pointment  = CancelAp pointment. new("CLINI C_BASED_BO STON", "52 3","#{ pw_reda c t e d ['userid'] }")
  56       @cance l_appointm ent.update _appointme nt_obj("ap pointmentT ime", "#{@ fourteenDa ysLater} 1 1:00:00")
  57       @cance l_appointm ent.update _appointme nt_obj("cl inicId", " 64")
  58       @cance l_appointm ent.update _appointme nt_obj("cl inicName",  "AUDIOLOG Y")
  59       @cance l_appointm ent.cancel _appointme nt()
  60       @cance l_appointm ent.update _appointme nt_obj("ap pointmentT ime", "#{@ twentyoneD aysLater}  11:00:00")
  61       @cance l_appointm ent.cancel _appointme nt()
  62  
  63       @@time Slot = "11 :00"
  64       @@time Slot2 = "1 1:00"
  65       #mongo
  66       @db =  connectToM ongoDB("va r-utility" )
  67       restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db )
  68       restor eCollectio n("custom- friendly-t ext", "var -utility",  "facility _friendly_ name.json" , @db)
  69       restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db)
  70       restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db)
  71       delete PatientDat a("1113138 327")
  72       @clini c_friendly _name ="Au diology Cl inic"
  73       @locat ion = "BOS TON HCS VA MC"
  74       ## 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
  75       # for  details, l ist and ap pointment  form is be ing pulled  from same  place
  76       @clini c = "BO RH EUM DUBREU IL"
  77       @frien dly_name_b oston = "F acility Fr iendly Tex t (BOSTON,  MA)"
  78       @frien dly_name_b oston_deta ils = "Fac ility Frie ndly Text"
  79       @frien dly_name_b rockton =  "Facility  Friendly B rockton (B ROCKTON, M A)"
  80       @frien dly_name =  "Facility  Friendly  Text"
  81         @common.lo ginEndsOnH ome( pw_reda c t e d )
  82       @landi ng_appoint ments.appo intment_he ader_eleme nt.wait_un til_presen t(TIME_OUT _LIMIT)
  83       @commo n.selectAd dAppointme ntButton(" VA")
  84     end
  85  
  86     after(:a ll) do
  87         @cancel_ap pointment  = CancelAp pointment. new("CLINI C_BASED_BO STON", "52 3","#{ pw_reda c t e d ['userid'] }")
  88       @cance l_appointm ent.update _appointme nt_obj("ap pointmentT ime", "#{@ @setDate}  11:00:00")
  89       @cance l_appointm ent.update _appointme nt_obj("cl inicId", " 64")
  90       @cance l_appointm ent.update _appointme nt_obj("cl inicName",  "AUDIOLOG Y")
  91       @cance l_appointm ent.cancel _appointme nt()
  92       @cance l_appointm ent.update _appointme nt_obj("ap pointmentT ime", "#{@ @setDate2}  11:00:00" )
  93       @cance l_appointm ent.cancel _appointme nt()
  94       @drive r.close
  95     end
  96  
  97     context  'AC#VAR-10 127|TC#VAR -10128: Di rect Sched uling Conf irmation P age:  Upda te to show  facility  location d efault nam e' do
  98  
  99       it 'Ve rify newly  created a ppointment  status' d o
  100         @new _appointme nt.createA ppointment ('audiolog y', '523',  '64', 'te st', @four teenDaysLa ter, @@tim eSlot, 'te stAutomati on@testAut omationxyz .com')
  101         @@se tDate = Ne wAppointme ntRequest. bookedDate
  102         expe ct(@detail .isConfirm ationDispl ayed?).to  eq(true)
  103         expe ct(@detail .appointme nt_status_ group_elem ent.text). to eq("Sta tus:  Sche duled")
  104       end
  105  
  106       it "Ve rify newly  created a ppointment  facility  name in de tails" do
  107         @@se lectedDay  = getDayof Week(@@set Date)
  108         @@ti meSlot = @ @timeSlot. gsub!(':',  '')
  109         expe cted_text  = [\
  110              "Date and  Time:" + "  #{@@selec tedDay},"  + " #{@@se tDate}",
  111              "Date:" +  " #{@@sele ctedDay}," + " #{@@se tDate}",
  112              @@timeSlot ,
  113              "Time: #{@ @timeSlot. gsub("", "  ")}",
  114              "Add to Ca lendar",
  115              "Details:  " + "#{@lo cation}",
  116              "#{@clinic _friendly_ name}",
  117              "Also call ed: #{@cli nic}",
  118              "Please ar rive 30 mi nutes befo re your sc heduled ti me unless  otherwise  directed.  VA Facilit y Locator" ,
  119              "Cancel Ap pointment" ,
  120              "Reason fo r Appointm ent: test"
  121         ]
  122         actu al_text =  @detail.ap pointment_ details_gr oup_elemen t.text.spl it("\n")
  123         actu al_text =  actual_tex t.reject {  |c| c.emp ty? }
  124         expe cted_text. each_with_ index do |  expectedS creenRow,  i |
  125           ex pect(actua l_text[i]. gsub(/\s+/ , '')).to  eq(expecte dScreenRow .gsub(/\s+ /, ''))
  126         end
  127  
  128       end
  129  
  130  
  131     end
  132  
  133     context  'AC#VAR-10 127|TC#VAR -10128: Di rect Sched uling Conf irmation P age:  Upda te to show  facility  location f riendly na me' do
  134  
  135  
  136       it 'Cr eate appoi ntment whe re friendl y name is  set for a  facility '  do
  137         butt on_element  = @driver .button(:i d => 'back -btn')
  138         @dri ver.execut e_script(" $(argument s[0]).clic k();",butt on_element )
  139         @com mon.waitWh ileSpinner Present
  140         @lan ding_appoi ntments.ap pointment_ header_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  141         @lan ding_notif ications.n otificatio n_detail_n ew_appt_el ement.wait _until_pre sent(TIME_ OUT_LIMIT)
  142         rest oreCollect ion("custo m-friendly -text", "v ar-utility ", "facili ty_friendl y_name_bos ton.json",  @db)
  143         @com mon.select AddAppoint mentButton ("VA")
  144         @new _appointme nt.createA ppointment (AUDIOLOGY , '523', ' 64', 'test ', @twenty oneDaysLat er, @@time Slot2, 'te stAutomati on@testAut omationxyz .com')
  145         @@se tDate2 = N ewAppointm entRequest .bookedDat e
  146         expe ct(@detail .isConfirm ationDispl ayed?).to  eq(true)
  147         expe ct(@detail .appointme nt_status_ group_elem ent.text). to eq("Sta tus:  Sche duled")
  148       end
  149  
  150       it 'Ve rify newly  created a ppointment  details a nd facilit y friendly  name in d etails' do
  151  
  152         @@se lectedDay  = getDayof Week(@@set Date2)
  153         @@ti meSlot2 =  @@timeSlot 2.gsub!(': ', '')
  154         expe cted_text  = [\
  155              "Date and  Time:" + "  #{@@selec tedDay},"  + " #{@@se tDate2}",
  156              "Date:" +  " #{@@sele ctedDay}," + " #{@@se tDate2}",
  157              @@timeSlot 2,
  158              "Time: #{@ @timeSlot2 .gsub("",  " ")}",
  159              "Add to Ca lendar",
  160              "Details:  " + "#{@fr iendly_nam e_boston_d etails}",
  161              "#{@clinic _friendly_ name}",
  162              "Also call ed: #{@cli nic}",
  163              "Please ar rive 30 mi nutes befo re your sc heduled ti me unless  otherwise  directed.  VA Facilit y Locator" ,
  164              "Cancel Ap pointment" ,
  165              "Reason fo r Appointm ent: test"
  166         ]
  167         actu al_text =  @detail.ap pointment_ details_gr oup_elemen t.text.spl it("\n")
  168         actu al_text =  actual_tex t.reject {  |c| c.emp ty? }
  169         expe cted_text. each_with_ index do |  expectedS creenRow,  i |
  170           ex pect(actua l_text[i]. gsub(/\s+/ , '')).to  eq(expecte dScreenRow .gsub(/\s+ /, ''))
  171         end
  172  
  173       end
  174  
  175       it 've rify facil ity friend ly name in  list' do
  176         butt on_element  = @driver .button(:i d => 'back -btn')
  177         @dri ver.execut e_script(" $(argument s[0]).clic k();",butt on_element )
  178         @com mon.waitWh ileSpinner Present
  179         @lan ding_appoi ntments.ap pointment_ header_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  180         @lan ding_notif ications.n otificatio n_detail_n ew_appt_el ement.wait _until_pre sent(TIME_ OUT_LIMIT)
  181         all_ appointmen ts = @land ing_appoin tments.lis t_of_appoi ntments_el ements
  182         appo intment_to _verify =  "View deta ils for yo ur appoint ment," + " \n" + "Dat e/Time:" +  "\n" + "# {@@selecte dDay}," +  " #{@@setD ate2}" + " \n" + "#{@ @timeSlot2 }" + "\n"  + "#{@@sel ectedDay},  #{@@setDa te2} #{@@t imeSlot2.g sub("", "  ")}" + "\n " + "Detai ls:" + "\n " + "VA Fa cility App ointment"  + "\n" +"# {@friendly _name_bost on_details }" + "\n"  + "#{@clin ic_friendl y_name}" +  "\n" + "A lso called : #{@clini c}" + "\n"  + "Prepar e/Join:" +  "\n" +"Pr epare for  your appoi ntment"
  183         expe ct(@landin g_appointm ents.verif yAppointme ntDetailsI nList(all_ appointmen ts, appoin tment_to_v erify)).to  eq(true)
  184       end
  185  
  186     end
  187  
  188     context  'AC#VAR-10 393|TC#VAR -10193 VAR  & Utility  Integrati on - Direc t Scheduli ng - New A ppointment  Form - Lo cation sel ection' do
  189       it 'Ve rify Frien dly name f or 3 digit  location  in Select  Location'  do
  190         rest oreCollect ion("custo m-friendly -text", "v ar-utility ", "facili ty_friendl y_name_bos ton.json",  @db)
  191         @com mon.select AddAppoint mentButton ("VA")
  192         @new _appointme nt.selectT ypeOfCare( PRIMARY_CA RE)
  193         @new _appointme nt.selectS tate("523" )
  194         actu al_content  = @new_ap pointment. getScreenC ontent
  195         expe ct(actual_ content).t o include( @friendly_ name_bosto n)
  196       end
  197  
  198       it 'Ve rify Frien dly name f or 5 digit  location  in Select  Location'  do
  199         @new _appointme nt.cancelF orm
  200         @com mon.waitWh ileSpinner Present
  201         @lan ding_appoi ntments.ap pointment_ header_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  202         @com mon.select AddAppoint mentButton ("VA")
  203         rest oreCollect ion("custo m-friendly -text", "v ar-utility ", "facili ty_friendl y_name_bro ckton.json ", @db)
  204         @new _appointme nt.selectT ypeOfCare( PRIMARY_CA RE)
  205         @new _appointme nt.selectS tate("523" )
  206         actu al_content  = @new_ap pointment. getScreenC ontent
  207         expe ct(actual_ content).t o include( @friendly_ name_brock ton)
  208         @new _appointme nt.cancelF orm
  209         @lan ding_appoi ntments.ap pointment_ header_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  210  
  211       end
  212  
  213  
  214     end
  215  
  216   end