297. EPMO Open Source Coordination Office Redaction File Detail Report

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

297.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\requests request_utility_Integration_PC_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\requests request_utility_Integration_PC_spec.rb Fri Dec 7 13:26:02 2018 UTC

297.2 Comparison summary

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

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

297.4 Active regular expressions

No regular expressions were active.

297.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   require 'w atir-scrol l'
  9  
  10   require_re lative '.. /../module /DriverUti lity'
  11   require_re lative '.. /rspec_hel per'
  12   require_re lative './ request_he lper'
  13   require_re lative '.. /../pages/ landing'
  14   require_re lative '.. /../pages/ login'
  15   require_re lative '.. /../pages/ eula'
  16   require_re lative '.. /../common /common'
  17   require_re lative '.. /../pages/ landing_ap pointments '
  18   require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest'
  19   require_re lative '.. /../pages/ appointmen ts/request _appointme nt_detail'
  20   require_re lative '.. /../module /database/ OracleUtil ity'
  21   require_re lative '.. /../module /DateUtili ty'
  22   require_re lative '.. /../module /database/ MongoUtili ty'
  23   require_re lative '.. /../helper /modal'
  24  
  25  
  26   describe ' [Story VAR -1734: App ointment R equests -  Utility In tegration  - Primary  Care]' do
  27     include  DriverUtil ity
  28     include  OracleUtil ity
  29     include  DateUtilit y
  30     include  MongoUtili ty
  31  
  32     before(: all) do
  33       initia lizeConfig urations(V AR_BASE_UR L)
  34       @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver)
  35       @login  = Login.n ew(@driver )
  36       @eula  = Eula.new (@driver)
  37       @commo n = Common .new(@driv er)
  38       @new_r equest = N ewAppointm entRequest .new(@driv er)
  39       @detai l = Reques tAppointme ntDetail.n ew(@driver )
  40       @new_a ppointment  = NewAppo intmentReq uest.new(@ driver)
  41       @modal  = Modal.n ew(@driver )
  42       @today  = getDate NthDaysFro mNow(0, "% m/%d/%Y")
  43       TITLE  = "Appoint ments/Requ ests"
  44  
  45       #mongo
  46       @db =  connectToM ongoDB("va r-utility" )
  47       #resto reCollecti on("clinic al-service s", "var-u tility", " clinical_s ervices_cu stomized.j son", @db)
  48       restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "direct Scheduling Disabled.j son", @db)
  49       restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db)
  50       @patie ntID = "10 06088937V0 99668"
  51       @patie ntID2 = "1 113138327"
  52       delete PatientDat a(@patient ID)
  53       delete PatientDat a(@patient ID2)
  54       @commo n.loginEnd sOnHome(Mo ckUser03)
  55       @commo n.selectAd dAppointme ntButton(" VA")
  56  
  57     end
  58  
  59     after(:a ll) do
  60       @drive r.close
  61       #resto reCollecti on("clinic al-service s", "var-u tility", " clinical_s ervices_de fault.json ", @db)
  62     end
  63  
  64     context  'AC#VAR-41 57| TC#VAR -4158: Req uest - Pri mary Care  - Utility  Integratio n' do
  65       it "Re quest - Pr imary Care  Supported : Submit a  Request t o VA Sched uliner" do
  66  
  67         @new _request.s electTypeO fCare(PRIM ARY_CARE)
  68         @new _request.s electState ("523")
  69         @new _request.s electLocat ion("523")
  70         @com mon.waitWh ileSpinner Present
  71         expe cted_conte nt =[\
  72                             "Step  4: Schedul ing Method ",
  73                             "The l ocation yo u selected  supports  the follow ing schedu ling metho ds:",
  74                             "* Sel ect a sche duling met hod:",
  75                             "Sched ule Myself ",
  76                             "You m ust have a n assigned  PACT team  to direct ly schedul e appointm ents. Plea se contact  your faci lity for a ssistance. ",
  77                             "Submi t a Reques t to VA Sc heduler",
  78         ]
  79  
  80         actu al_content  = @new_re quest.sche duling_met hod_sectio n.split("\ n")
  81         comp areContent s(expected _content,  actual_con tent)
  82  
  83       end
  84  
  85       it "If  only one  scheduling  method is  available  and enabl ed, displa y that rad io button  choice as  selected b y default.   " do
  86         rest oreCollect ion("direc tBookingEl igibilityC riteria",  "var-utili ty", "dire ctScheduli ngDisabled .json", @d b)
  87         rest oreCollect ion("reque stEligibil ityCriteri a", "var-u tility", " requestEli gibilityCr iteria.jso n", @db)
  88         @new _request.s electTypeO fCare(AUDI OLOGY)
  89         @new _request.s electState ("523")
  90         @new _request.s electLocat ion("523")
  91         @com mon.waitWh ileSpinner Present
  92         expe ct(@new_ap pointment. scheduling _method_ra dio_elemen ts[0].enab led?).to e q(false)
  93         expe ct(@new_ap pointment. scheduling _method_ra dio_elemen ts[1].enab led?).to e q(true)
  94         expe ct(@new_ap pointment. scheduling _method_ra dio_elemen ts[1].sele cted?).to  eq(true)
  95       end
  96  
  97       it "Ad d a Primar y Care Req uest" do
  98         @new _appointme nt.cancelF orm
  99         dele tePatientD ata(@patie ntID)
  100         dele tePatientD ata(@patie ntID2)
  101         rest oreCollect ion("reque stEligibil ityCriteri a", "var-u tility", " requestEli gibilityCr iteria.jso n", @db)
  102           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  103         @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT)
  104         @com mon.waitWh ileSpinner Present
  105         type OfCare = P RIMARY_CAR E
  106         sche dulingMeth od = "cler k"
  107         faci lityId = " 523"
  108         faci lityName =  "BOSTON H CS VAMC"
  109         type OfVisit =  "Office Vi sit"
  110         purp oseOfVisit  = "Medica tion Conce rn"
  111         othe rPurposeOf Visit = ""
  112         desi redDateTim e1 = [getD ateNthDays FromNow(40 , "%m/%d/% Y"), "AM"]
  113         desi redDateTim e2 = [getD ateNthDays FromNow(42 , "%m/%d/% Y"), "PM"]
  114         desi redDAteTim e3 = [getD ateNthDays FromNow(43 , "%m/%d/% Y"), "AM"]
  115         phon eNum = "(2 34) 567-89 01"
  116         veri fyPhoneNum  = "(234)  567-8901"
  117  
  118         best TimeToCall  = " After noon, Even ing"
  119         call _morning =  false
  120         call _afternoon  = true
  121         call _evening =  true
  122         best TimesForVA toCall = [ call_morni ng, call_a fternoon,  call_eveni ng]
  123         vaTo CallYou =  false
  124         mess age = ""
  125         send MeEmail =  "false"
  126         emai l = "test1 @hotmail.c om"
  127  
  128         addR equest(sch edulingMet hod, typeO fCare, fac ilityId, t ypeOfVisit , purposeO fVisit, ot herPurpose OfVisit, d esiredDate Time1, des iredDateTi me2, desir edDAteTime 3, phoneNu m, verifyP honeNum, b estTimesFo rVAtoCall,  vaToCallY ou, messag e, sendMeE mail, emai l)
  129  
  130         @com mon.waitWh ileSpinner Present
  131         expe ct(@detail .back_btn_ element.ex ists?).to  eq(true)
  132       end
  133  
  134       it "Ad d another  Primary Ca re request " do
  135         @det ail.back_b tn
  136  
  137         @com mon.waitWh ileSpinner Present
  138  
  139  
  140         type OfCare = P RIMARY_CAR E
  141         sche dulingMeth od = "cler k"
  142         faci lityId = " 523"
  143         faci lityName =  "BOSTON H CS VAMC"
  144         type OfVisit =  "Phone Cal l"
  145         purp oseOfVisit  = "Medica tion Conce rn"
  146         othe rPurposeOf Visit = ""
  147         desi redDateTim e1 = [getD ateNthDays FromNow(32 , "%m/%d/% Y"), "AM"]
  148         desi redDateTim e2 = [getD ateNthDays FromNow(31 , "%m/%d/% Y"), "PM"]
  149         desi redDAteTim e3 = [getD ateNthDays FromNow(29 , "%m/%d/% Y"), "AM"]
  150         phon eNum = "(2 34) 567-89 01"
  151         veri fyPhoneNum  = "(234)  567-8901"
  152  
  153         best TimeToCall  = " After noon, Even ing"
  154         call _morning =  false
  155         call _afternoon  = true
  156         call _evening =  true
  157         best TimesForVA toCall = [ call_morni ng, call_a fternoon,  call_eveni ng]
  158         vaTo CallYou =  false
  159         mess age = ""
  160         send MeEmail =  "false"
  161         emai l = "test1 @hotmail.c om"
  162  
  163         addR equest(sch edulingMet hod, typeO fCare, fac ilityId, t ypeOfVisit , purposeO fVisit, ot herPurpose OfVisit, d esiredDate Time1, des iredDateTi me2, desir edDAteTime 3, phoneNu m, verifyP honeNum, b estTimesFo rVAtoCall,  vaToCallY ou, messag e, sendMeE mail, emai l)
  164  
  165  
  166         @com mon.waitWh ileSpinner Present
  167         expe ct(@detail .back_btn_ element.ex ists?).to  eq(true)
  168       end
  169  
  170       it "Ve rify reque st limit m essage is  displayed  for Primar y care" do
  171  
  172         @com mon.waitWh ileSpinner Present
  173         @det ail.back_b tn_element .when_pres ent(TIME_O UT_LIMIT)
  174         @det ail.back_b tn
  175         @com mon.waitWh ileSpinner Present
  176         @com mon.select AddAppoint mentButton ("VA")
  177         @new _request.s electTypeO fCare(PRIM ARY_CARE)
  178         @new _request.s electState ("523")
  179         @new _request.s electLocat ion("523")
  180         @com mon.waitWh ileSpinner Present
  181  
  182         #max  limit is  3 (customi zed)
  183         expe cted_conte nt =[\
  184                             "Step  4: Schedul ing Method ",
  185                             "The l ocation yo u selected  supports  the follow ing schedu ling metho ds:",
  186                             "* Sel ect a sche duling met hod:",
  187                             "Sched ule Myself ",
  188                             "Submi t a Reques t to VA Sc heduler",
  189                             "You h ave reache d the limi t of 2 #{P RIMARY_CAR E} request (s).",
  190                             "In or der to pro ceed, plea se cancel  a pending  request, o r wait for  the VA to  process a  request."
  191         ]
  192  
  193         actu al_content  = @new_re quest.sche duling_met hod_sectio n.split("\ n")
  194  
  195         comp areContent s(expected _content,  actual_con tent)
  196  
  197  
  198       end
  199  
  200       it "If  a method  is not ava ilable for  the selec ted Type o f Care, di sable that  choice an d display  informatio nal text b elow the o ption that  reads:" d o
  201         @new _request.c ancelForm
  202         rest oreCollect ion("reque stEligibil ityCriteri a", "var-u tility", " audiologyR equestDisa bled.json" , @db)
  203         rest oreCollect ion("direc tBookingEl igibilityC riteria",  "var-utili ty", "dire ctScheduli ngEnabled. json", @db )
  204           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  205         @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT)
  206         @com mon.waitWh ileSpinner Present
  207  
  208         @com mon.select AddAppoint mentButton ("VA")
  209         @com mon.waitWh ileSpinner Present()
  210         @new _request.s electTypeO fCare(AUDI OLOGY)
  211         @new _request.s electState ("523")
  212         @new _request.s electLocat ion("523")
  213  
  214         expe cted_conte nt =[\
  215                             "Step  4: Schedul ing Method ",
  216                             "The l ocation yo u selected  supports  the follow ing schedu ling metho ds:",
  217                             "* Sel ect a sche duling met hod:",
  218                             "Sched ule Myself ",
  219                             "Submi t a Reques t to VA Sc heduler",
  220                             "This  method is  not availa ble for th e type of  care you s elected."
  221         ]
  222         actu al_content  = @new_re quest.sche duling_met hod_sectio n.split("\ n")
  223         comp areContent s(expected _content,  actual_con tent)
  224  
  225       end
  226  
  227       it "Ve rify Reque st list di splays the  correct f acility na me on refr esh" do
  228         @new _appointme nt.cancelF orm
  229         rest oreCollect ion("reque stEligibil ityCriteri a", "var-u tility", " requestEli gibilityCr iteria.jso n", @db)
  230         type OfCare = P RIMARY_CAR E
  231         sche dulingMeth od = "cler k"
  232         faci lityId = " 523A5"
  233         faci lityName =  "BROCKTON  VAMC"
  234         type OfVisit =  "Office Vi sit"
  235         purp oseOfVisit  = "Medica tion Conce rn"
  236         othe rPurposeOf Visit = ""
  237         desi redDateTim e1 = [getD ateNthDays FromNow(40 , "%m/%d/% Y"), "AM"]
  238         desi redDateTim e2 = [getD ateNthDays FromNow(42 , "%m/%d/% Y"), "PM"]
  239         desi redDAteTim e3 = [getD ateNthDays FromNow(43 , "%m/%d/% Y"), "AM"]
  240         phon eNum = "(2 34) 567-89 01"
  241         veri fyPhoneNum  = "(234)  567-8901"
  242  
  243         best TimeToCall  = " After noon, Even ing"
  244         call _morning =  false
  245         call _afternoon  = true
  246         call _evening =  true
  247         best TimesForVA toCall = [ call_morni ng, call_a fternoon,  call_eveni ng]
  248         vaTo CallYou =  false
  249         mess age = ""
  250         send MeEmail =  "false"
  251         emai l = "test1 @hotmail.c om"
  252  
  253         addR equest(sch edulingMet hod, typeO fCare, fac ilityId, t ypeOfVisit , purposeO fVisit, ot herPurpose OfVisit, d esiredDate Time1, des iredDateTi me2, desir edDAteTime 3, phoneNu m, verifyP honeNum, b estTimesFo rVAtoCall,  vaToCallY ou, messag e, sendMeE mail, emai l)
  254         @com mon.waitWh ileSpinner Present
  255         @det ail.back_b tn_element .when_pres ent(TIME_O UT_LIMIT)
  256         @det ail.back_b tn
  257  
  258         @com mon.waitWh ileSpinner Present
  259         @lan ding_appoi ntments.re fresh
  260         @com mon.waitWh ileSpinner Present
  261         requ est_detail s = @landi ng_appoint ments.requ est_table_ list_eleme nts[0]
  262         requ est_detail s.scroll.t o :top
  263         Wati r::Wait.un til {@land ing_appoin tments.get RequestTex tForRowCol (2,2) == " Submitted" }
  264         expe ct(@landin g_appointm ents.getRe questTextF orRowCol(1 ,3)).to eq ("BROCKTON  VAMC")
  265         expe ct(@landin g_appointm ents.getRe questTextF orRowCol(2 ,3)).to eq ("BOSTON H CS VAMC")
  266         expe ct(@landin g_appointm ents.getRe questTextF orRowCol(3 ,3)).to eq ("BOSTON H CS VAMC")
  267       end
  268  
  269     end
  270  
  271   end
  272  
  273  
  274  
  275  
  276  
  277  
  278  
  279  
  280  
  281  
  282  
  283  
  284  
  285  
  286  
  287  
  288  
  289  
  290  
  291  
  292  
  293  
  294  
  295  
  296  
  297  
  298  
  299  
  300  
  301  
  302  
  303  
  304  
  305  
  306  
  307  
  308  
  309  
  310