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.
| # | 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 | appointment_form_single_location_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 | appointment_form_single_location_spec.rb | Fri Dec 7 13:25:46 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 320 |
| Changed | 1 | 2 |
| 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 | #!/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 'r est-client ' | |
| 9 | require 'n et/http' | |
| 10 | ||
| 11 | require_re lative '.. /../module /DriverUti lity' | |
| 12 | require_re lative '.. /rspec_hel per' | |
| 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/booked_ appointmen t_detail' | |
| 20 | require_re lative '.. /../helper /modal' | |
| 21 | require_re lative '.. /../module /database/ OracleUtil ity' | |
| 22 | require_re lative '.. /../module /DateUtili ty' | |
| 23 | require_re lative '.. /../helper /error_val idation' | |
| 24 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 25 | require_re lative '.. /../pages/ feedback' | |
| 26 | require_re lative '.. /../pages/ landing_no tification s' | |
| 27 | ||
| 28 | ||
| 29 | describe ' [Story# VA R-1928: Ne w Appointm ent - Ente r Details] ' do | |
| 30 | ||
| 31 | include DriverUtil ity | |
| 32 | include OracleUtil ity | |
| 33 | include DateUtilit y | |
| 34 | include MongoUtili ty | |
| 35 | ||
| 36 | ||
| 37 | before(: all) do | |
| 38 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 39 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 40 | @login = Login.n ew(@driver ) | |
| 41 | @eula = Eula.new (@driver) | |
| 42 | @commo n = Common .new(@driv er) | |
| 43 | @modal = Modal.n ew(@driver ) | |
| 44 | @new_a ppointment = NewAppo intmentReq uest.new(@ driver) | |
| 45 | @detai l = Booked Appointmen tDetail.ne w(@driver) | |
| 46 | @error = Error_V alidation. new(@drive r) | |
| 47 | @feedb ack = Feed back.new(@ driver) | |
| 48 | @landi ng_notific ations = L andingNoti fications. new(@drive r) | |
| 49 | TITLE = "Appoint ments/Requ ests" | |
| 50 | ||
| 51 | @tomor row = getD ateNthDays FromNow(1, "%m/%d/%Y ") | |
| 52 | @ninty DaysLater = getDateN thDaysFrom Now(90, "% m/%d/%Y") | |
| 53 | @@pati entID ="11 13138327" | |
| 54 | ||
| 55 | #mongo | |
| 56 | @db = connectToM ongoDB("va r-utility" ) | |
| 57 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db ) | |
| 58 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 59 | restor eCollectio n("custom- friendly-t ext", "var -utility", "facility _friendly_ name.json" , @db) | |
| 60 | restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "boston DirectSche duling.jso n", @db) | |
| 61 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "bo stonReques tEligibili ty.json", @db) | |
| 62 | delete PatientDat a(@@patien tID) | |
| 63 | @common.lo ginEndsOnH ome( pw_reda c t e d ) | |
| 64 | @commo n.selectAd dAppointme ntButton(" VA") | |
| 65 | ||
| 66 | end | |
| 67 | ||
| 68 | after(:a ll) do | |
| 69 | @drive r.close | |
| 70 | end | |
| 71 | ||
| 72 | context 'AC#VAR-27 59|TC#VAR- 2765: New Appointmen t - Enter Details cr iteria' do | |
| 73 | ||
| 74 | it "Ve rify Appoi ntment Det ails form is loaded" do | |
| 75 | @new _appointme nt.selectT ypeOfCare( PRIMARY_CA RE) | |
| 76 | @new _appointme nt.selectS tate("523" ) | |
| 77 | @new _appointme nt.selectS chedulingM ethod("dir ect") | |
| 78 | expe ct(@new_ap pointment. appointmen t_details_ legend).to eq("Appoi ntment Det ails") | |
| 79 | end | |
| 80 | ||
| 81 | it "sh ould verif y labels a nd options on new ap pointment form" do | |
| 82 | @new _appointme nt.selectC linic("32" ) | |
| 83 | @new _appointme nt.reason_ element.wh en_present (TIME_OUT_ LIMIT) | |
| 84 | ||
| 85 | expe cted_conte nt =[\ | |
| 86 | "* req uired fiel d", | |
| 87 | "Step 1: Type of Care", | |
| 88 | "The V A Appointm ents app s upports sc heduling s pecific ty pes of car e. If you do not fin d the care you need, please co ntact your facility for assist ance.", | |
| 89 | "* Sel ect the ty pe of care you need: ", | |
| 90 | "Selec t", | |
| 91 | "Prima ry Care", | |
| 92 | "Audio logy", | |
| 93 | "Expre ss Care", | |
| 94 | "Optom etry", | |
| 95 | "Outpa tient Ment al Health" , | |
| 96 | "Step 2: City, S tate", | |
| 97 | "* Cho ose the cl osest city and state for this appointmen t:", | |
| 98 | "Selec t", | |
| 99 | "Des M oines, IA" , | |
| 100 | "Iowa City, IA", | |
| 101 | "BOSTO N, MA", | |
| 102 | "Omaha , NE", | |
| 103 | "Step 3: Locatio n", | |
| 104 | "One l ocation su pports sch eduling #{ PRIMARY_CA RE} throug h this app . If you c annot find the locat ion you ne ed, please visit the VA Facili ty Locator to contac t the faci lity for a ssistance. ", | |
| 105 | "Facil ity:", | |
| 106 | "BOSTO N HCS VAMC (BOSTON, MA)", | |
| 107 | "Provi ders:", | |
| 108 | "Cream er, Kent", | |
| 109 | "Your Care Team (PACT)", | |
| 110 | "Your Care Team (PACT) for BOSTON HC S VAMC", | |
| 111 | "Step 4: Schedul ing Method ", | |
| 112 | "The l ocation yo u selected supports the follow ing schedu ling metho ds:", | |
| 113 | "* Sel ect a sche duling met hod:", | |
| 114 | "Sched ule Myself ", | |
| 115 | "Submi t a Reques t to VA Sc heduler", | |
| 116 | "Appoi ntment Det ails", | |
| 117 | "* Sel ect Clinic :", | |
| 118 | "BO PA CT B1", | |
| 119 | "JP PR IMARY CARE DR. CREAM ER", | |
| 120 | "BO PC C QUICK AC CESS AM 22 04", | |
| 121 | "Prima ry Care - No Time Sl ot", | |
| 122 | "If yo u don't se e the clin ic that ma tches your needs, pl ease conta ct your fa cility for assistanc e.", | |
| 123 | "* Rea son for Ap pointment: ", | |
| 124 | "(150 char limit )", | |
| 125 | "150 c haracters remaining" , | |
| 126 | "* Pre ferred Dat e:", | |
| 127 | "Appoi ntments ma y be sched uled betwe en " + @to morrow + " and " +@n intyDaysLa ter+ ".", | |
| 128 | "Show Availabili ty", | |
| 129 | "Email Preferenc es", | |
| 130 | "Send me updates on my app ointments and reques ts:", | |
| 131 | "Infor mation abo ut updates on my app ointments and reques ts", | |
| 132 | "Yes", | |
| 133 | "No", | |
| 134 | "Sched ule Appoin tment Canc el"] | |
| 135 | ||
| 136 | ||
| 137 | actu al_content = @new_ap pointment. getScreenC ontent.spl it("\n") | |
| 138 | expe cted_conte nt.each_wi th_index d o | expect edScreenRo w, i | | |
| 139 | ex pect(actua l_content[ i].strip). to include (expectedS creenRow.s trip) | |
| 140 | end | |
| 141 | ||
| 142 | end | |
| 143 | ||
| 144 | ||
| 145 | it "Sh ould verif y selectin g clinic l oads Reaso n for Appo intment an d preferre d dates op tions" do | |
| 146 | ||
| 147 | @new _appointme nt.reason_ element.wh en_present (TIME_OUT_ LIMIT) | |
| 148 | @new _appointme nt.preferr ed_date_el ement.when _present(T IME_OUT_LI MIT) | |
| 149 | expe ct(@new_ap pointment. reason_ele ment.prese nt?).to eq (true) | |
| 150 | expe ct(@new_ap pointment. preferred_ date_eleme nt.present ?).to eq(t rue) | |
| 151 | end | |
| 152 | end | |
| 153 | end | |
| 154 | ||
| 155 | ||
| 156 | ||
| 157 | ||
| 158 | ||
| 159 | ||
| 160 | ||
| 161 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.