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.
| # | 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_primary_care_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_primary_care_spec.rb | Fri Dec 7 13:25:48 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 222 |
| Changed | 2 | 4 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | require 'r ubygems' | |
| 2 | require 'r spec' | |
| 3 | require 'w atir-webdr iver' | |
| 4 | require 'p age-object ' | |
| 5 | require 'o ci8' | |
| 6 | ||
| 7 | require_re lative '.. /../module /DriverUti lity' | |
| 8 | require_re lative '.. /rspec_hel per' | |
| 9 | require_re lative '.. /../pages/ landing' | |
| 10 | require_re lative '.. /../pages/ login' | |
| 11 | require_re lative '.. /../pages/ eula' | |
| 12 | require_re lative '.. /../common /common' | |
| 13 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 14 | require_re lative '.. /../common /cancel_ap pointment' | |
| 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 '.. /../helper /error_val idation' | |
| 21 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 22 | require_re lative '.. /../pages/ feedback' | |
| 23 | require_re lative '.. /../pages/ landing_no tification s' | |
| 24 | ||
| 25 | ||
| 26 | describe ' [Story# VA R-9670: Re move suppo rted facil ities chec k for trad itional VA R appointm ents; use utility se ttings to control di splay for all care t ypes]' do | |
| 27 | ||
| 28 | include DriverUtil ity | |
| 29 | include OracleUtil ity | |
| 30 | include DateUtilit y | |
| 31 | include MongoUtili ty | |
| 32 | ||
| 33 | ||
| 34 | before(: all) do | |
| 35 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 36 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 37 | @login = Login.n ew(@driver ) | |
| 38 | @eula = Eula.new (@driver) | |
| 39 | @commo n = Common .new(@driv er) | |
| 40 | @modal = Modal.n ew(@driver ) | |
| 41 | @new_a ppointment = NewAppo intmentReq uest.new(@ driver) | |
| 42 | @detai l = Booked Appointmen tDetail.ne w(@driver) | |
| 43 | @error = Error_V alidation. new(@drive r) | |
| 44 | @feedb ack = Feed back.new(@ driver) | |
| 45 | @landi ng_notific ations = L andingNoti fications. new(@drive r) | |
| 46 | TITLE = "Appoint ments/Requ ests" | |
| 47 | ||
| 48 | @tomor row = getD ateNthDays FromNow(1, "%m/%d/%Y ") | |
| 49 | @tenDa ysLater = getDateNth DaysFromNo w(10, "%m/ %d/%Y") | |
| 50 | @seven DaysFromNo w = getDat eNthDaysFr omNow(7, " %m/%d/%Y") | |
| 51 | ||
| 52 | #mongo | |
| 53 | @db = connectToM ongoDB("va r-utility" ) | |
| 54 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s iteSupport ingMissing Location.j son", @db) | |
| 55 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 56 | restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "primar yCareDirec tSchedulin gNewSettin gs.json", @db) | |
| 57 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db) | |
| 58 | restor eCollectio n("custom- friendly-t ext", "var -utility", "facility _friendly_ name.json" , @db) | |
| 59 | delete PatientDat a("1113138 327") | |
| 60 | @cancel_ap pointment = CancelAp pointment. new("CLINI C_BASED_BO STON", "52 3","#{ pw_reda c t e d ['userid'] }") | |
| 61 | @cance l_appointm ent.update _appointme nt_obj("ap pointmentT ime", "#{@ sevenDaysF romNow} 11 :00:00") | |
| 62 | @cance l_appointm ent.cancel _appointme nt() | |
| 63 | @common.lo ginEndsOnH ome( pw_reda c t e d ) | |
| 64 | @landi ng_appoint ments.appo intment_he ader_eleme nt.wait_un til_presen t(TIME_OUT _LIMIT) | |
| 65 | @commo n.selectAd dAppointme ntButton(" VA") | |
| 66 | ||
| 67 | end | |
| 68 | ||
| 69 | after(:a ll) do | |
| 70 | @cance l_appointm ent.cancel _appointme nt() | |
| 71 | @drive r.close | |
| 72 | end | |
| 73 | ||
| 74 | ||
| 75 | context 'AC#VAR-10 889|TC#VAR -10990: Re move suppo rted facil ities chec k for trad itional VA R appointm ents; use utility se ttings to control di splay for all care t ypes' do | |
| 76 | ||
| 77 | it 'On ly Facilit ies config ured to Ye s in VA To ol Set app ear in Loc ations Dro pDown' do | |
| 78 | @new _appointme nt.selectT ypeOfCare( PRIMARY_CA RE) | |
| 79 | @new _appointme nt.selectS tate("523" ) | |
| 80 | expe cted_conte nt =[\ | |
| 81 | "Step 3: Locatio n", | |
| 82 | "The f ollowing f acility lo cations su pport sche duling #{P RIMARY_CAR E} appoint ments thro ugh this a pp. If you cannot fi nd the loc ation you need, plea se visit t he VA Faci lity Locat or to cont act the fa cility for assistanc e.", | |
| 83 | "* Sel ect the lo cation you want to v isit:", | |
| 84 | "Selec t", | |
| 85 | "BOSTO N HCS VAMC (BOSTON, MA) - Your Primary C are Team", | |
| 86 | "BROCK TON VAMC ( BROCKTON, MA)", | |
| 87 | "QUINC Y (QUINCY, MA)" | |
| 88 | ] | |
| 89 | ||
| 90 | actu al_content = @new_ap pointment. facility_s ection_ele ment.text. split("\n" ) | |
| 91 | ||
| 92 | comp areContent s( expecte d_content, actual_co ntent) | |
| 93 | ||
| 94 | end | |
| 95 | ||
| 96 | it 'Ca n schedule an appoin tment for a facility missing i n siteSupp ortingVAR collection ' do | |
| 97 | @new _appointme nt.selectL ocation("5 23") | |
| 98 | @new _appointme nt.selectS chedulingM ethod("dir ect") | |
| 99 | @new _appointme nt.selectC linic("32" ) | |
| 100 | @new _appointme nt.provide ReasonForA ppointment ("This is new Primar y Care Req uest") | |
| 101 | @new _appointme nt.selectP referedDat e(@sevenDa ysFromNow, "11:00") | |
| 102 | @new _appointme nt.enterEm ail("testP C@test.com ") | |
| 103 | slee p 2 | |
| 104 | @new _appointme nt.clickSc heduleAppo intment | |
| 105 | @com mon.waitWh ileSpinner Present() | |
| 106 | Wati r::Wait.un til {@deta il.appoint ment_detai ls_group_e lement.pre sent?} | |
| 107 | Wati r::Wait.un til {@deta il.appoint ment_detai ls_group_e lement.tex t.include? ("Reason f or Appoint ment")} | |
| 108 | ||
| 109 | expe ct(@detail .appointme nt_status_ group_elem ent.text). to eq("Sta tus: Sche duled") | |
| 110 | ||
| 111 | end | |
| 112 | end | |
| 113 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.