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\community_care | submitAllCCRequests_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\community_care | submitAllCCRequests_spec.rb | Fri Dec 7 13:25:54 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 738 |
| 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 | require_re lative '.. /rspec_hel per' | |
| 2 | require_re lative '.. /../pages/ community_ care/commu nity_Care_ PageObject ' | |
| 3 | require 'r ubygems' | |
| 4 | require_re lative '.. /../module /DriverUti lity' | |
| 5 | require_re lative 'cc _SM_reques t_helper' | |
| 6 | require_re lative '.. /../pages/ appointmen ts/request _appointme nt_detail' | |
| 7 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 8 | require 'w atir-scrol l' | |
| 9 | ||
| 10 | describe ' [Story VAR -8698 :CC Request – Appointmen t Preferen ces | |
| 11 | Story V AR-10013 : CC Reques t - Notifi cation Set tings - Un der VA Sch eduling No tification s always r equire ema il address | |
| 12 | Story V AR-10871 : VAR -CC R equest - E nsure the Veteran\'s email add ress is al ways displ ayed on th e request submission and detai ls page. | |
| 13 | Story V AR-11069 : VAR- All CC Request s- Include Message a Schedulin g Clerk in the Notif ication Se ttings | |
| 14 | Story V AR-8929 :C C Request Details Pa ge - Displ ay CC Appo intment Re quest] | |
| 15 | Story V AR-8927 :C C Request List - Upd ate to inc lude commu nity care] | |
| 16 | Story V AR-10559 : VAR - CC F ind PCP - Update Req uests tabl e to inclu de Find PC P | |
| 17 | Story V AR-9898 :A dd informa tion for A ddress Fie lds from D istance El igibility Check in D etails Pag e | |
| 18 | Story V AR-8928 :V AR - CC Sp ecialty Ca re Types a nd Find PC P - View U pdated Det ails Page | |
| 19 | Story V AR-9162 :C C Wizard: Retain sav ed views w hen naviga ting betwe en wizard views] | |
| 20 | Story V AR-9030 :C C Navigate without s aving mess ages - pre vious and exit butto ns | |
| 21 | Story V AR-9313 :N ew Appoint ment/Reque st form – Display Fo rm and Ste p 1 Select Service; | |
| 22 | Story V AR-9538 : Display In formation for Unusua l and Exce ssive Trav el Burden | |
| 23 | Story V AR-10150 : VAR - CC Request - Step 2: Di stance Eli gibility - Text Upda tes and Ne w question added abo ve unusual and exces sive trave l burden | |
| 24 | Story V AR-8698 :C C Request – Appointm ent Prefer ences | |
| 25 | Story V AR-10013 : CC Reques t - Notifi cation Set tings - Un der VA Sch eduling No tification s always r equire ema il address | |
| 26 | Story V AR-10871 : VAR -CC R equest - E nsure the Veteran\'s email add ress is al ways displ ayed on th e request submission and detai ls page. | |
| 27 | Story V AR-11069 : VAR- All CC Request s- Include Message a Schedulin g Clerk in the Notif ication Se ttings | |
| 28 | Story V AR-10387:V AR - CC Fi nd PCP - V iew Comple ted Reques ts; | |
| 29 | Story V AR-10458:V AR- CC Fin d PCP - Up date Reque st details view | |
| 30 | Story V AR-11042: VAR - CC F ind PCP - Veteran Ca ncelling a Find PCP request | |
| 31 | Story V AR-8698 :C C Request – Appointm ent Prefer ences]', : varList_Mo ckService => false d o | |
| 32 | include DriverUtil ity | |
| 33 | include DateUtilit y | |
| 34 | include OracleUtil ity | |
| 35 | include MongoUtili ty | |
| 36 | before(: all) do | |
| 37 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 38 | @cc_po = Communi tyCare_Pag eObject.ne w(@driver) | |
| 39 | @reque st_appoint ment_detai l = Reques tAppointme ntDetail.n ew(@driver ) | |
| 40 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 41 | delete PatientDat a("1113138 327") | |
| 42 | delete AllCCReque stData() | |
| 43 | delete Notificati onPreferen ce("111313 8327") | |
| 44 | @today = getDate NthDaysFro mNow(0, "% m/%d/%Y") | |
| 45 | @today hr = getNt hHoursFrom Now(0) | |
| 46 | @today min = getN thMinFromN ow(0) | |
| 47 | @fiveD aysLater = getDateNt hDaysFromN ow(6, "%m/ %d/%Y") | |
| 48 | @eight DaysLater = getDateN thDaysFrom Now(8,"%m/ %d/%Y") | |
| 49 | @seven DaysLater = getDateN thDaysFrom Now(7,"%m/ %d/%Y") | |
| 50 | @db = connectToM ongoDB("va r-utility" ) | |
| 51 | restor eCollectio n("communi tyCareType OfCares", "var-utili ty", "comm unityCareT ypesOfCare .json", @d b) | |
| 52 | @cc_po.com mon.loginE ndsOnHome( pw_reda c t e d ) | |
| 53 | end | |
| 54 | ||
| 55 | after(:a ll) do | |
| 56 | @cc_po .loginLogo ut.logout | |
| 57 | end | |
| 58 | ||
| 59 | context "When Auth orized VAO S User pro vides thei r valid Us er Name an d Password " do | |
| 60 | ||
| 61 | it "El igible Use r should a ble to sel ect Commun ity Care a nd fill ou t the requ ired wizar ds Step 1 - Step 4 " do | |
| 62 | @cc_ po.common. selectAddA ppointment Button("CC ") | |
| 63 | @cc_ po.communi tyCare.eli gibility_n o_element. click | |
| 64 | @cc_ po.communi tyCare.tra vel_no_ele ment.click | |
| 65 | @cc_ po.communi tyCare.unu sual_no_el ement.clic k | |
| 66 | @cc_ po.communi tyCare.add ress = "22 22 Confere nce Center Dr" | |
| 67 | @cc_ po.communi tyCare.cit y = "Chant illy" | |
| 68 | @cc_ po.communi tyCare.sta te = "VA" | |
| 69 | @cc_ po.communi tyCare.zip _code_1st_ question = "20151" | |
| 70 | @cc_ po.communi tyCare.zip _code_1st_ question_e lement.fir e_event('o nblur') | |
| 71 | @cc_ po.communi tyCare.fin d_nearest_ facility | |
| 72 | @cc_ po.common. waitWhileS pinnerPres ent | |
| 73 | expe ct(@cc_po. communityC are.eligib ility_resp onse_eleme nt.text).t o eq("You meet preli minary eli gibility c riteria fo r communit y care. Se lect the \ "Continue\ " button b elow to co mplete a r equest for care in y our commun ity.") | |
| 74 | expe ct(@cc_po. communityC are.find_n earest_fac ility_elem ent.disabl ed?).to eq true | |
| 75 | end | |
| 76 | ||
| 77 | it "Us er should able to co ntinue fil l out Step 3 and Ste p 4" do | |
| 78 | @cc_ po.communi tyCare.con tinue_btn | |
| 79 | @cc_ po.communi tyCare.fac ility_radi o_btn_elem ents[1].cl ick | |
| 80 | @cc_ po.communi tyCare.car e_type = " Optometry (routine e ye exam)" | |
| 81 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 82 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq ("T his app cu rrently on ly support s routine eye exams. If you ha ve other n eeds, plea se contact your Prim ary Care P rovider to discuss t he issue. If you are distance eligible a nd do not have a Pri mary Care Provider, you can us e this app to reques t help in getting on e assigned .") | |
| 83 | expe ct(@cc_po. communityC are.care_t yp_details _element.t ext).to eq ("This inc ludes an o ffice visi t for an e ye exam an d vision e valuation, which may include d ilating yo ur eyes. T he exam ma y lead to prevention and treat ment recom mendations , a reques t for furt her consul tation, an d/or a pre scription for eye gl asses or c ontact len ses. A rou tine exam is not for any new o r sudden c hanges wit h your vis ion or eye s.") | |
| 84 | end | |
| 85 | ||
| 86 | it "Us er shoule able to hi t Continue and fill out Step 5 wizard" d o | |
| 87 | @cc_ po.communi tyCare.con _yes_eleme nt.click | |
| 88 | @cc_ po.communi tyCare.con tinue_btn | |
| 89 | @cc_ po.communi tyCare.exe cute_scrip t("argumen ts[0].scro llIntoView ();", @cc_ po.communi tyCare.exi t_button_e lement) | |
| 90 | @cc_ po.communi tyCare.cho ice1_date = @fiveDay sLater | |
| 91 | @cc_ po.communi tyCare.cho ice1_date_ element.fi re_event(' onblur') | |
| 92 | @cc_ po.communi tyCare.rad io_am_pm_e lements[1] .click | |
| 93 | @cc_ po.communi tyCare.rad io_am_pm_e lements[1] .fire_even t('onblur' ) | |
| 94 | @cc_ po.communi tyCare.cho ice2_date = @fiveDay sLater | |
| 95 | expe ct(@cc_po. communityC are.invali d_date_err or_element s[0].text) .to eq("Th e Date Ent ered is no t unique." ) | |
| 96 | @cc_ po.communi tyCare.cho ice2_date = @eightDa ysLater | |
| 97 | @cc_ po.communi tyCare.rad io_am_pm_e lements[3] .click | |
| 98 | @cc_ po.communi tyCare.con tinue_btn_ element.fi re_event(' onblur') | |
| 99 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 100 | end | |
| 101 | ||
| 102 | it "Us er Should able to co ntinue and fill out Step 6 wiz ard" do | |
| 103 | @cc_ po.communi tyCare.pro vider_city = "Dulles " | |
| 104 | @cc_ po.communi tyCare.pro vider_stat e = "VA" | |
| 105 | @cc_ po.communi tyCare.pro vider_zip = "20166" | |
| 106 | @cc_ po.communi tyCare.pre ferred_mil es_element s[0].click | |
| 107 | @cc_ po.communi tyCare.pre ferred_lan g = "Chine se" | |
| 108 | @cc_ po.communi tyCare.off ice_hrs_el ements[1]. click | |
| 109 | @cc_ po.communi tyCare.pre vious_btn_ element.sc roll.to :b ottom | |
| 110 | @cc_ po.communi tyCare.con tinue_btn_ element.fi re_event(' onblur') | |
| 111 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 112 | end | |
| 113 | ||
| 114 | it "Us er should able to co ntinue and fillout S tep 7 wiza rd" do | |
| 115 | expe ct(@cc_po. communityC are.step7_ instructio ns_element .text).to eq("If you need to c ommunicate with a sc heduling c lerk about this requ est, you m ay ask a c lerk to ca ll you or you may me ssage a cl erk throug h this app .") | |
| 116 | expe ct(@cc_po. communityC are.mornin g_call_ele ment.check ed?).to eq true | |
| 117 | expe ct(@cc_po. communityC are.aftern oon_call_e lement.che cked?).to eq true | |
| 118 | expe ct(@cc_po. communityC are.evenin g_call_ele ment.check ed?).to eq true | |
| 119 | expe ct(@cc_po. communityC are.phoneC all_reques tYes_selec ted?).to e q false | |
| 120 | expe ct(@cc_po. communityC are.submit _request_e lement.dis abled?).to eq true | |
| 121 | end | |
| 122 | ||
| 123 | it "ve rify Best Times for VAR to Cal l secton" do | |
| 124 | actu al_content = @cc_po. communityC are.phone_ call_setti ngs_elemen t.text.spl it("\n") | |
| 125 | expe cted_conte nt = [\ | |
| 126 | "V A Phone Ca lls", | |
| 127 | " * Phone: " , | |
| 128 | "* Best Time s for VA t o Call (Mo nday throu gh Friday) ", | |
| 129 | "M orning", | |
| 130 | "A fternoon", | |
| 131 | "E vening", | |
| 132 | "W ould you l ike the VA to call y ou regardi ng this re quest?", | |
| 133 | "Y es", | |
| 134 | "N o", | |
| 135 | ] | |
| 136 | comp _text(expe cted_conte nt, actual _content) | |
| 137 | end | |
| 138 | ||
| 139 | it "ve rify Messa ge to Cler k secton" do | |
| 140 | puts (@cc_po.c ommunityCa re.clerk_m sg_section _element.t ext.split( "\n")) | |
| 141 | expe ct(@cc_po. communityC are.clerk_ msg_elemen t.attribut e("placeho lder")).to eq("Messa ges (100 c haracters max) shoul d not be u sed for ca ncelling a n appointm ent or for clinical questions that may n eed provid er attenti on.") | |
| 142 | actu al_content = @cc_po. communityC are.clerk_ msg_sectio n_element. text.split ("\n") | |
| 143 | expe cted_conte nt = [\ | |
| 144 | " Message a Scheduling Clerk", | |
| 145 | " (100 char limit)", | |
| 146 | " 100 charac ters remai ning", | |
| 147 | ] | |
| 148 | comp _text(expe cted_conte nt, actual _content) | |
| 149 | end | |
| 150 | ||
| 151 | it "ve rify Email Preferenc es secton" do | |
| 152 | actu al_content = @cc_po. communityC are.email_ pref_secti on_element .text.spli t("\n") | |
| 153 | expe cted_conte nt = [\ | |
| 154 | " VA Schedul ing Notifi cations", | |
| 155 | " Community Care reque sts requir e an email address s o that we may contac t you abou t your app ointment a nd provide additiona l instruct ions as ne eded.", | |
| 156 | " Please con firm your email befo re submitt ing this r equest.", | |
| 157 | " Send me up dates on m y appointm ents and r equests:", | |
| 158 | " Informatio n about up dates on m y appointm ents and r equests", # aria lab el | |
| 159 | " Yes", | |
| 160 | " No", | |
| 161 | " * Email:" | |
| 162 | ] | |
| 163 | comp _text(expe cted_conte nt, actual _content) | |
| 164 | end | |
| 165 | ||
| 166 | ||
| 167 | it "ve rify the f ield valid ation of N otificatio n Form and fill out the notifi cation set tings form " do | |
| 168 | @cc_ po.communi tyCare.pho ne_require d = 344444 | |
| 169 | @cc_ po.communi tyCare.pho ne_require d_element. fire_event ('onblur') | |
| 170 | expe ct(@cc_po. communityC are.phone_ error_elem ent.text). to eq("Ple ase enter a valid US Phone num ber.") | |
| 171 | @cc_ po.communi tyCare.pho ne_require d = 333444 5555 | |
| 172 | @cc_ po.communi tyCare.pho ne_require d_element. fire_event ('onblur') | |
| 173 | @cc_ po.communi tyCare.unc heck_morni ng_call | |
| 174 | @cc_ po.communi tyCare.unc heck_eveni ng_call | |
| 175 | @cc_ po.communi tyCare.pho neCall_req uestYes_el ement.clic k | |
| 176 | @cc_ po.communi tyCare.pho neCall_req uestYes_el ement.fire _event('on blur') | |
| 177 | expe ct(@cc_po. communityC are.email_ notificati on_label_e lement.tex t).to eq(" VA Schedul ing Notifi cations") | |
| 178 | expe ct(@cc_po. communityC are.email_ instructio n_elements [0].text). to eq("Com munity Car e requests require a n email ad dress so t hat we may contact y ou about y our appoin tment and provide ad ditional i nstruction s as neede d.") | |
| 179 | expe ct(@cc_po. communityC are.email_ instructio n_elements [1].text). to eq("Ple ase confir m your ema il before submitting this requ est.") | |
| 180 | @cc_ po.communi tyCare.ema il_field= "test.test " | |
| 181 | @cc_ po.communi tyCare.ema il_field_e lement.fir e_event('o nblur') | |
| 182 | expe ct( @cc_po .community Care.email _error_ele ment.text) .to eq("Pl ease enter a valid e mail addre ss.") | |
| 183 | @cc_ po.communi tyCare.msg _clerk = " This is a test" | |
| 184 | @cc_ po.communi tyCare.msg _clerk_ele ment.fire_ event('onb lur') | |
| 185 | @cc_ po.communi tyCare.ema il_field= "test.test @gmail.com " | |
| 186 | @cc_ po.communi tyCare.ema il_field_e lement.fir e_event('o nblur') | |
| 187 | @cc_ po.communi tyCare.ema il_field_e lement.sen d_keys :ta b | |
| 188 | @cc_ po.communi tyCare.sub mit_reques t_element. click | |
| 189 | @cc_ po.common. waitWhileS pinnerPres ent | |
| 190 | end | |
| 191 | ||
| 192 | it "Ve rify the S tatus Sect ion View P age" do | |
| 193 | puts (@cc_po.c ommunityCa re.provide r_preferen ce_sec_ele ment.text. split("\n" )) | |
| 194 | @cc_ po.communi tyCare.req uest_Statu s_element. when_prese nt(TIME_OU T_LIMIT) | |
| 195 | expe ct(@cc_po. communityC are.reques t_Status_e lement.tex t).to eq(" Status: Su bmitted") | |
| 196 | expe ct(@cc_po. communityC are.reques t_status_m sg_element .text).to eq("View s tatus upda tes for th is request under the \"Request s\" sectio n of the A ppointment s and Requ ests page. Once sche duled, the resulting appointme nt will be displayed under the “Appointm ents” sect ion of the same page .") | |
| 197 | end | |
| 198 | ||
| 199 | it "Sh ould verif y Provide Feedback l ink is dis played on Submission Confirmat ion page" do | |
| 200 | expe ct(@cc_po. detailsVie w.provide_ feedback_l ink_elemen t.text).to eq("Provi de feedbac k on this submission .") | |
| 201 | end | |
| 202 | ||
| 203 | it "Ve rify the P rovider Se ction View Page" do | |
| 204 | actu al_content = @cc_po. communityC are.provid er_prefere nce_sec_el ement.text .split("\n ") | |
| 205 | expe cted_conte nt = [\ | |
| 206 | "Provider Preference s", | |
| 207 | "Preferred Location" , | |
| 208 | "City Dull es State V A Zip Code 20166 How many mile s away fro m this ZIP code are you willin g to trave l? 10 Pref erred Lang uage Spoke n Chinese Office Hou rs Evening s" | |
| 209 | ] | |
| 210 | comp _text(expe cted_conte nt, actual _content) | |
| 211 | end | |
| 212 | ||
| 213 | it "Co ntact Info section s hould disp lay expect ed informa tion" do | |
| 214 | expe ct(@cc_po. communityC are.contac t_info_ele ments[0].t ext).to eq ("Email te st.test@gm ail.com") | |
| 215 | expe ct(@cc_po. communityC are.contac t_info_ele ments[1].t ext).to eq ("Phone (3 33) 444-55 55") | |
| 216 | expe ct(@cc_po. communityC are.contac t_info_ele ments[2].t ext).to eq ("Best Tim es for VA to Call Af ternoon") | |
| 217 | end | |
| 218 | ||
| 219 | it "sh ould verif y the cont ent of Eli gibility D etails Sec tion" do | |
| 220 | puts (@cc_po.c ommunityCa re.eligibi lity_detai ls_section _element.t ext).split (",") | |
| 221 | actu al_content = (@cc_po .community Care.eligi bility_det ails_secti on_element .text).spl it(/\n/) | |
| 222 | expe cted_conte nt = [\ | |
| 223 | "Eligibili ty Details :", | |
| 224 | "Are you a distance Eligible V eteran? No Do you ne ed to trav el by air, boat, or ferry to t he VA medi cal facili ty closest to your h ome? No Ar e you face d with an excessive burden due to travel ing to the closest V A medical facility b ased on ge ographic c hallenges, environme ntal facto rs, or a m edical con dition? No Street Ad dress2222 Conference Center Dr CityChant illy State VA Zip Cod e20151" | |
| 225 | ] | |
| 226 | comp _text(expe cted_conte nt, actual _content) | |
| 227 | ||
| 228 | end | |
| 229 | ||
| 230 | it "ve rify the m essage sen t by Vet o n details view page" do | |
| 231 | @cc_ po.communi tyCare.sen d_msg_btn_ element.sc roll.to :b ottom | |
| 232 | @cc_ po.communi tyCare.msg _details_c lerk = "Th is is seco nd test" | |
| 233 | @cc_ po.communi tyCare.sen d_msg_btn | |
| 234 | @cc_ po.common. waitWhileS pinnerPres ent | |
| 235 | expe ct(@cc_po. communityC are.msg_to _clerk_ele ments[0].t ext).to eq ("This is second tes t") | |
| 236 | expe ct(@cc_po. communityC are.msg_to _clerk_ele ments[1].t ext).to eq ("This is a test") | |
| 237 | end | |
| 238 | ||
| 239 | it "Us er should able to go back to l anding pag e and loca te the sub mitted CC Request" d o | |
| 240 | @cc_ po.communi tyCare.app _request_b ak_element .scroll.to :top | |
| 241 | @cc_ po.communi tyCare.app _request_b ak | |
| 242 | find CCrequestf romRequest sTable | |
| 243 | @req uest_appoi ntment_det ail.cancel _btn_eleme nt.scroll. to | |
| 244 | @req uest_appoi ntment_det ail.cancel _btn_eleme nt.when_pr esent(TIME _OUT_LIMIT ) | |
| 245 | @req uest_appoi ntment_det ail.cancel _btn | |
| 246 | @cc_ po.modal.m odalTitle_ element.wh en_visible (TIME_OUT_ LIMIT) | |
| 247 | expe ct(@cc_po. modal.moda lTitle_ele ment.text) .to eq("Co nfirmation ") | |
| 248 | expe ct(@cc_po. modal.cont ent_elemen t.text).to eq("Are y ou sure yo u want to cancel thi s request? \nSelect Y es to canc el, No to return to the Reques t details page.") | |
| 249 | @cc_ po.modal.n o_cancel_r equest | |
| 250 | end | |
| 251 | ||
| 252 | it "sh ould add a nother spe ciality CC request" do | |
| 253 | @cc_ po.communi tyCare.app _request_b ak_element .scroll.to :top | |
| 254 | @cc_ po.communi tyCare.app _request_b ak | |
| 255 | @cc_ po.common. selectAddA ppointment Button("CC ") | |
| 256 | @cc_ po.communi tyCare.rad io_btn_ele ments[1].c lick | |
| 257 | @cc_ po.communi tyCare.eli gibility_y es_element .click | |
| 258 | @cc_ po.communi tyCare.con tinue_btn | |
| 259 | end | |
| 260 | ||
| 261 | it "Us er should able to co ntinue fil l out Step 3 and Ste p 4" do | |
| 262 | @cc_ po.communi tyCare.fac ility_radi o_btn_elem ents[1].cl ick | |
| 263 | @cc_ po.communi tyCare.car e_type ="A udiology ( hearing ai d support) " | |
| 264 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 265 | expe ct(@cc_po. communityC are.care_t yp_details _element.t ext).to eq ("This is an office visit for Veterans w ho already have a he aring aid and who ne ed assista nce with t he device. This visi t is for t rouble sho oting or a djusting y our hearin g aid for best perfo rmance. Th is may inc lude techn ical adjus tments, cl eaning, an d/or repro gramming f or new lis tening sit uations an d environm ents. This is not a visit to i nitially b e evaluate d for or t o obtain a hearing a id.") | |
| 266 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq ("T his reques t is for h earing aid support o nly. If yo u have oth er needs, please con tact your Primary Ca re Provide r to discu ss the iss ue. If you are dista nce eligib le and do not have a Primary C are Provid er, you ca n use this app to re quest help in gettin g one assi gned.") | |
| 267 | @cc_ po.communi tyCare.con _yes_eleme nt.click | |
| 268 | end | |
| 269 | ||
| 270 | it "su bmit CC Re quest" do | |
| 271 | @cc_ po.communi tyCare.con tinue_btn | |
| 272 | @cc_ po.communi tyCare.exe cute_scrip t("argumen ts[0].scro llIntoView ();", @cc_ po.communi tyCare.exi t_button_e lement) | |
| 273 | @cc_ po.communi tyCare.cho ice1_date = @fiveDay sLater | |
| 274 | @cc_ po.communi tyCare.cho ice1_date_ element.fi re_event(' onblur') | |
| 275 | @cc_ po.communi tyCare.rad io_am_pm_e lements[1] .click | |
| 276 | @cc_ po.communi tyCare.rad io_am_pm_e lements[1] .fire_even t('onblur' ) | |
| 277 | @cc_ po.communi tyCare.con tinue_btn_ element.fi re_event(' onblur') | |
| 278 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 279 | end | |
| 280 | ||
| 281 | it "Us er Should able to co ntinue and fill out Step 6 wiz ard" do | |
| 282 | @cc_ po.communi tyCare.pro vider_city = "Dulles " | |
| 283 | @cc_ po.communi tyCare.pro vider_stat e = "VA" | |
| 284 | @cc_ po.communi tyCare.pro vider_zip = "20166" | |
| 285 | @cc_ po.communi tyCare.pre ferred_mil es_element s[0].click | |
| 286 | @cc_ po.communi tyCare.pre ferred_lan g = "Chine se" | |
| 287 | @cc_ po.communi tyCare.off ice_hrs_el ements[1]. click | |
| 288 | @cc_ po.communi tyCare.pre vious_btn_ element.sc roll.to :b ottom | |
| 289 | @cc_ po.communi tyCare.con tinue_btn_ element.fi re_event(' onblur') | |
| 290 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 291 | end | |
| 292 | ||
| 293 | it "Us er should able to co ntinue and fillout S tep 7 wiza rd" do | |
| 294 | expe ct(@cc_po. communityC are.step7_ instructio ns_element .text).to eq("If you need to c ommunicate with a sc heduling c lerk about this requ est, you m ay ask a c lerk to ca ll you or you may me ssage a cl erk throug h this app .") | |
| 295 | expe ct(@cc_po. communityC are.mornin g_call_ele ment.check ed?).to eq true | |
| 296 | expe ct(@cc_po. communityC are.aftern oon_call_e lement.che cked?).to eq true | |
| 297 | expe ct(@cc_po. communityC are.evenin g_call_ele ment.check ed?).to eq true | |
| 298 | expe ct(@cc_po. communityC are.phoneC all_reques tYes_selec ted?).to e q false | |
| 299 | expe ct(@cc_po. communityC are.submit _request_e lement.dis abled?).to eq true | |
| 300 | @cc_ po.communi tyCare.pho ne_require d = 333444 5555 | |
| 301 | @cc_ po.communi tyCare.pho ne_require d_element. fire_event ('onblur') | |
| 302 | @cc_ po.communi tyCare.unc heck_morni ng_call | |
| 303 | @cc_ po.communi tyCare.unc heck_eveni ng_call | |
| 304 | @cc_ po.communi tyCare.pho neCall_req uestYes_el ement.clic k | |
| 305 | @cc_ po.communi tyCare.pho neCall_req uestYes_el ement.fire _event('on blur') | |
| 306 | @cc_ po.communi tyCare.msg _clerk = " This is a test" | |
| 307 | @cc_ po.communi tyCare.msg _clerk_ele ment.fire_ event('onb lur') | |
| 308 | @cc_ po.communi tyCare.ema il_field= "test.test @gmail.com " | |
| 309 | @cc_ po.communi tyCare.ema il_field_e lement.fir e_event('o nblur') | |
| 310 | @cc_ po.communi tyCare.ema il_field_e lement.sen d_keys :ta b | |
| 311 | @cc_ po.communi tyCare.sub mit_reques t_element. click | |
| 312 | @cc_ po.common. waitWhileS pinnerPres ent | |
| 313 | @cc_ po.communi tyCare.app _request_b ak_element .scroll.to :top | |
| 314 | @cc_ po.communi tyCare.app _request_b ak | |
| 315 | end | |
| 316 | ||
| 317 | it "su bmit PCP R equest" do | |
| 318 | @cc_ po.common. selectAddA ppointment Button("CC ") | |
| 319 | @cc_ po.communi tyCare.rad io_btn_ele ments[1].c lick | |
| 320 | @cc_ po.communi tyCare.eli gibility_y es_element .click | |
| 321 | @cc_ po.communi tyCare.con tinue_btn | |
| 322 | @cc_ po.communi tyCare.fac ility_radi o_btn_elem ents[1].cl ick | |
| 323 | @cc_ po.communi tyCare.car e_type ="F ind a Prov ider (prim ary care)" | |
| 324 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 325 | expe ct(@cc_po. communityC are.care_t yp_details _element.t ext).to eq ("If appro ved, you'l l be assig ned to a p rimary car e provider in the co mmunity to whom we w ill send t he approve d referral . Once ass igned, you will be p rovided in formation and will n eed to con tact the p rovider’s office dir ectly for preventive and other health ca re needs f or the dur ation of t he approve d referral .") | |
| 326 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq ("T his reques t currentl y only sup ports the finding of a Primary Care Prov ider. If y ou have ot her needs, please co ntact your local VA Medical Ce nter to di scuss this issue. If you are d istance el igible and do not ha ve a Prima ry Care Pr ovider, yo u can use this app t o request help in ge tting one assigned." ) | |
| 327 | @cc_ po.communi tyCare.con _yes_eleme nt.click | |
| 328 | @cc_ po.communi tyCare.con tinue_btn | |
| 329 | @cc_ po.communi tyCare.pro vider_city = "Dulles " | |
| 330 | @cc_ po.communi tyCare.pro vider_stat e = "VA" | |
| 331 | @cc_ po.communi tyCare.pro vider_zip = "20166" | |
| 332 | @cc_ po.communi tyCare.pre ferred_mil es_element s[0].click | |
| 333 | @cc_ po.communi tyCare.pre ferred_lan g = "Chine se" | |
| 334 | @cc_ po.communi tyCare.off ice_hrs_el ements[1]. click | |
| 335 | @cc_ po.communi tyCare.pre vious_btn_ element.sc roll.to :b ottom | |
| 336 | @cc_ po.communi tyCare.con tinue_btn_ element.fi re_event(' onblur') | |
| 337 | @cc_ po.communi tyCare.con tinue_btn | |
| 338 | @cc_ po.communi tyCare.pho ne_require d = 333444 5555 | |
| 339 | @cc_ po.communi tyCare.pho ne_require d_element. fire_event ('onblur') | |
| 340 | @cc_ po.communi tyCare.unc heck_morni ng_call | |
| 341 | @cc_ po.communi tyCare.unc heck_eveni ng_call | |
| 342 | @cc_ po.communi tyCare.pho neCall_req uestYes_el ement.clic k | |
| 343 | @cc_ po.communi tyCare.pho neCall_req uestYes_el ement.fire _event('on blur') | |
| 344 | @cc_ po.communi tyCare.msg _clerk = " This is a test" | |
| 345 | @cc_ po.communi tyCare.msg _clerk_ele ment.fire_ event('onb lur') | |
| 346 | @cc_ po.communi tyCare.ema il_field= "test.test @gmail.com " | |
| 347 | @cc_ po.communi tyCare.ema il_field_e lement.fir e_event('o nblur') | |
| 348 | @cc_ po.communi tyCare.ema il_field_e lement.sen d_keys :ta b | |
| 349 | @cc_ po.communi tyCare.sub mit_reques t_element. click | |
| 350 | @cc_ po.common. waitWhileS pinnerPres ent | |
| 351 | @cc_ po.communi tyCare.app _request_b ak_element .scroll.to :top | |
| 352 | @cc_ po.communi tyCare.app _request_b ak | |
| 353 | end | |
| 354 | ||
| 355 | it "sh ould submi t Nutritio n Request" do | |
| 356 | @cc_ po.common. selectAddA ppointment Button("CC ") | |
| 357 | @cc_ po.communi tyCare.rad io_btn_ele ments[1].c lick | |
| 358 | fill outDatafor CCAppointm entRequest ("Nutritio n (routine exam)") | |
| 359 | expe ct(@cc_po. communityC are.reques t_Status_e lement.tex t).to eq(" Status: Su bmitted") | |
| 360 | end | |
| 361 | ||
| 362 | def co mp_text(ex pected_con tent, actu al_content ) | |
| 363 | expe cted_conte nt.each_wi th_index d o |expecte dScreenRow , i| | |
| 364 | ex pect(actua l_content[ i].to_s.st rip).to eq (expectedS creenRow.t o_s.strip) | |
| 365 | end | |
| 366 | end | |
| 367 | ||
| 368 | end | |
| 369 | ||
| 370 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.