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.
| # | 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 | express_care_scheduling_method_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 | express_care_scheduling_method_spec.rb | Fri Dec 7 13:26:00 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 364 |
| 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 | #!/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 're quest_help er' | |
| 12 | require_re lative '.. /../pages/ landing' | |
| 13 | require_re lative '.. /../pages/ login' | |
| 14 | require_re lative '.. /../pages/ eula' | |
| 15 | require_re lative '.. /../common /common' | |
| 16 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 17 | require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest' | |
| 18 | require_re lative '.. /../pages/ appointmen ts/request _appointme nt_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 | ||
| 25 | describe ' [Story#VAR -4634: New Request - Type of C are: Expre ss Care] | |
| 26 | [Story#VAR -4996: New Request - Express C are: Displ ay facilit y supporte d end time ] | |
| 27 | [Story#VAR -10481: Sc heduling o utside of express ca re hours - Error Mes sage ]' do | |
| 28 | include OracleUtil ity | |
| 29 | include DateUtilit y | |
| 30 | include DriverUtil ity | |
| 31 | include MongoUtili ty | |
| 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_r equest = N ewAppointm entRequest .new(@driv er) | |
| 41 | @detai l = Reques tAppointme ntDetail.n ew(@driver ) | |
| 42 | @error = Error_V alidation. new(@drive r) | |
| 43 | ||
| 44 | #mongo | |
| 45 | @db = connectToM ongoDB("va r-utility" ) | |
| 46 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db ) | |
| 47 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 48 | restor eCollectio n("custom- friendly-t ext", "var -utility", "facility _friendly_ name.json" , @db) | |
| 49 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db) | |
| 50 | #oracl e | |
| 51 | @patie ntID = "10 06088937V0 99668" | |
| 52 | @patie ntID2 = "1 113138327" | |
| 53 | delete PatientDat a(@patient ID) | |
| 54 | delete PatientDat a(@patient ID2) | |
| 55 | ||
| 56 | @common.lo ginEndsOnH ome( pw_reda c t e d ) | |
| 57 | ||
| 58 | end | |
| 59 | ||
| 60 | after(:a ll) do | |
| 61 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db) | |
| 62 | @drive r.close | |
| 63 | end | |
| 64 | ||
| 65 | context 'AC#VAR-49 51|TC#VAR- 4952: Test New Type of Care - Express Ca re | |
| 66 | AC#VAR-51 94|TC#VAR- 5195: Test - Express Care: Dis play facil ity suppor ted end ti me | |
| 67 | AC#VAR-10 639|TC#VAR -10640 : S cheduling outside of express c are hours - Error Me ssage ' do | |
| 68 | it "sh ould verif y Express Care is sh own in Typ e of care list" do | |
| 69 | @com mon.select AddAppoint mentButton ("VA") | |
| 70 | @new _request.t ype_of_car e_element. when_visib le(TIME_OU T_LIMIT) | |
| 71 | expe ct(@new_re quest.type _of_care_o ptions).to eq(["Sele ct", PRIMA RY_CARE, A UDIOLOGY, EXPRESS_CA RE , OPTOM ETRY, MENT AL_HEALTH] ) | |
| 72 | end | |
| 73 | ||
| 74 | it "Sh ould verif y express care end t ime messag e" do | |
| 75 | @new _request.s electTypeO fCare(EXPR ESS_CARE) | |
| 76 | @com mon.waitWh ileSpinner Present() | |
| 77 | @new _request.s electState ("523") | |
| 78 | @new _request.s electLocat ion("523") | |
| 79 | @com mon.waitWh ileSpinner Present() | |
| 80 | expe ct(@new_re quest.expr ess_care_e nd_time).t o eq("Expr ess Care r equest at this locat ion must b e submitte d before 2 3:59 #{Tim e.now.zone }.") | |
| 81 | ||
| 82 | end | |
| 83 | ||
| 84 | it "Ex press Care is select ed, the Sc heduling M ethod is d efaulted t o 'Submit a Request to VA Sche duler'" do | |
| 85 | expe ct(@new_re quest.sche duling_met hod_radio_ elements[1 ].value).t o eq("cler k") | |
| 86 | expe ct(@new_re quest.sche duling_met hod_radio_ elements[1 ].enabled? ).to eq(tr ue) | |
| 87 | expe ct(@new_re quest.sche duling_met hod_radio_ elements[1 ].selected ?).to eq(t rue) | |
| 88 | expe ct(@new_re quest.requ est_detail s_legend). to eq("Req uest Detai ls - Expre ss Care") | |
| 89 | end | |
| 90 | ||
| 91 | it "Sc hedule Mys elf option is disabl ed " do | |
| 92 | expe ct(@new_re quest.sche duling_met hod_radio_ elements[0 ].value).t o eq("dire ct") | |
| 93 | expe ct(@new_re quest.sche duling_met hod_radio_ elements[0 ].enabled? ).to eq(fa lse) | |
| 94 | ||
| 95 | end | |
| 96 | ||
| 97 | it "sh ould displ ay a messa ge is show n below th e method t hat reads: This met hod is not available for the t ype of car e you sele cted." do | |
| 98 | expe cted_conte nt =[\ | |
| 99 | "Step 4: Schedul ing Method ", | |
| 100 | "The l ocation yo u selected supports the follow ing schedu ling metho ds:", | |
| 101 | "* Sel ect a sche duling met hod:", | |
| 102 | "Sched ule Myself ", | |
| 103 | "This method is not availa ble for th e type of care you s elected.", | |
| 104 | "Submi t a Reques t to VA Sc heduler" | |
| 105 | ] | |
| 106 | ||
| 107 | actu al_content = @new_re quest.sche duling_met hod_sectio n.split("\ n") | |
| 108 | comp areContent s(expected _content, actual_con tent) | |
| 109 | end | |
| 110 | ||
| 111 | it "Ex press Care enabled, but user d oes not ha ve PACT" d o | |
| 112 | @new _request.c ancelForm | |
| 113 | @com mon.logout AndLogback WithADiffe rentUser(M ockUser03) | |
| 114 | @com mon.select AddAppoint mentButton ("VA") | |
| 115 | @new _request.s electTypeO fCare(EXPR ESS_CARE) | |
| 116 | @com mon.waitWh ileSpinner Present() | |
| 117 | @new _request.s electState ("523") | |
| 118 | @new _request.s electLocat ion("523") | |
| 119 | expe cted_conte nt =[\ | |
| 120 | "Step 4: Schedul ing Method ", | |
| 121 | "The l ocation yo u selected supports the follow ing schedu ling metho ds:", | |
| 122 | "* Sel ect a sche duling met hod:", | |
| 123 | "Sched ule Myself ", | |
| 124 | "This method is not availa ble for th e type of care you s elected.", | |
| 125 | "Submi t a Reques t to VA Sc heduler", | |
| 126 | "You m ust have a n assigned PACT in o rder to su bmit this type of re quest. Ple ase contac t your fac ility for assistance ." | |
| 127 | ] | |
| 128 | ||
| 129 | actu al_content = @new_re quest.sche duling_met hod_sectio n.split("\ n") | |
| 130 | comp areContent s(expected _content, actual_con tent) | |
| 131 | end | |
| 132 | ||
| 133 | it "Sh ould verif y both sch eduling me thods are disabled a nd none is selected" do | |
| 134 | ||
| 135 | expe ct(@new_re quest.sche duling_met hod_radio_ elements[0 ].enabled? ).to eq(fa lse) | |
| 136 | expe ct(@new_re quest.sche duling_met hod_radio_ elements[1 ].enabled? ).to eq(fa lse) | |
| 137 | expe ct(@new_re quest.sche duling_met hod_radio_ elements[1 ].selected ?).to eq(f alse) | |
| 138 | expe ct(@new_re quest.reas on_for_vis it_element .visible?) .to eq(fal se) | |
| 139 | end | |
| 140 | ||
| 141 | it "If Express C are is not available , the loca tion does not show u p. Only av ailable lo cation wit h Express care appea rs" do | |
| 142 | rest oreCollect ion("reque stEligibil ityCriteri a", "var-u tility", " requestEli gibilityCr iteriaNoEx pressCare. json", @db ) | |
| 143 | @new _request.c ancelForm | |
| 144 | @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT) | |
| 145 | @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d ) | |
| 146 | @com mon.select AddAppoint mentButton ("VA") | |
| 147 | @new _request.t ype_of_car e_element. when_visib le(TIME_OU T_LIMIT) | |
| 148 | @new _request.s electTypeO fCare(EXPR ESS_CARE) | |
| 149 | @new _request.s electState ("523") | |
| 150 | @new _request.l ocation_in struction_ element.wa it_until_p resent(TIM E_OUT_LIMI T) | |
| 151 | expe ct(@new_re quest.loca tion_instr uction_ele ment.text) .to eq "On e location supports scheduling Express C are 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. " | |
| 152 | expe ct(@new_re quest.sing le_locatio n).to eq " BROCKTON V AMC (BROCK TON, MA)" | |
| 153 | ||
| 154 | end | |
| 155 | ||
| 156 | it "sh ould verif y TC#VAR- 10640: Exp ress Care is support ed but the user has passed the can sched ule end ti me" do | |
| 157 | rest oreCollect ion("reque stEligibil ityCriteri a", "var-u tility", " requestEli gibilityCr iteriaTime PassedEC.j son", @db) | |
| 158 | @new _request.c ancelForm | |
| 159 | @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT) | |
| 160 | @com mon.select AddAppoint mentButton ("VA") | |
| 161 | @new _request.s electTypeO fCare(EXPR ESS_CARE) | |
| 162 | @new _request.s electState ("523") | |
| 163 | @new _request.s electLocat ion("523A5 ") | |
| 164 | expe cted_conte nt =[\ | |
| 165 | "Step 4: Schedul ing Method ", | |
| 166 | "The l ocation yo u selected supports the follow ing schedu ling metho ds:", | |
| 167 | "* Sel ect a sche duling met hod:", | |
| 168 | "Sched ule Myself ", | |
| 169 | "This method is not availa ble for th e type of care you s elected.", | |
| 170 | "Submi t a Reques t to VA Sc heduler", | |
| 171 | "This method is only avail able today between t he hours o f 02:00 an d 03:00 #{ Time.now.z one}" | |
| 172 | ] | |
| 173 | actu al_content = @new_re quest.sche duling_met hod_sectio n.split("\ n") | |
| 174 | comp areContent s(expected _content, actual_con tent) | |
| 175 | end | |
| 176 | end | |
| 177 | end | |
| 178 | ||
| 179 | ||
| 180 | ||
| 181 | ||
| 182 | ||
| 183 | ||
| 184 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.