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 | cc_typeOfcare_routine_exam_lang_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 | cc_typeOfcare_routine_exam_lang_spec.rb | Fri Dec 7 13:25:54 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 352 |
| 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 '.. /../module /database/ MongoUtili ty' | |
| 6 | ||
| 7 | describe ' [Story VAR -8697: CC Appointme nt Request – Type of Care; | |
| 8 | Story VAR -9042: Up date "rout ine" exam language; | |
| 9 | Story VAR -10008: Wh en user se lects No o ption for when a Typ e of Care is selecte d - update text from app to re quest | |
| 10 | Story VAR -10664: Ad d language when Podi atry (rout ine exam) option is selected f rom the Ty pe of Care | |
| 11 | Story VAR -10570: Ad d language when Prim ary Care ( find a pro vider) opt ion is sel ected from the Type of Care | |
| 12 | Story VAR -11223: VA R - CC Typ e of Care - Add text when Vete ran select s No to Do you wish to continu e with thi s request question | |
| 13 | Story VAR -12388: VA R - CC - A dd in Prim ary Care a ppointment as Type o f Care | |
| 14 | Story VAR -12387: CC - Add in Nutrition as Type of Care]' do | |
| 15 | ||
| 16 | include DriverUtil ity | |
| 17 | include MongoUtili ty | |
| 18 | ||
| 19 | before(: all) do | |
| 20 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 21 | @cc_po = Communi tyCare_Pag eObject.ne w(@driver) | |
| 22 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 23 | @db = connectToM ongoDB("va r-utility" ) | |
| 24 | restor eCollectio n("communi tyCareType OfCares", "var-utili ty", "comm unityCareT ypesOfCare .json", @d b) | |
| 25 | end | |
| 26 | ||
| 27 | after(:a ll) do | |
| 28 | @cc_po .loginLogo ut.logout | |
| 29 | end | |
| 30 | ||
| 31 | context "AC#VAR-88 23|TC#VAR- 8824:CC Ap pointment Request – Type of Ca re; | |
| 32 | AC#VAR-96 79|TC#9680 :Update ro utine exam language | |
| 33 | AC#VAR-10 173|TC#101 74:When us er selects 'No' opti on for whe n a Type o f Care is selected - update te xt from 'a pp' to 're quest' | |
| 34 | AC#VAR-10 823|TC#108 24:Add lan guage when 'Podiatry (routine exam)' opt ion is sel ected from the Type of Care | |
| 35 | AC#VAR-11 215|TC#112 16:Add lan guage when 'Primary Care (find a provide r)' option is select ed from th e Type of Care | |
| 36 | AC#VAR-11 393|TC#113 94:VAR - C C Type of Care - Add text when Veteran s elects 'No ' to 'Do y ou wish to continue with this request' q uestion" d o | |
| 37 | ||
| 38 | it "Lo gin and na vigate to step 3/4 w izard of C C Request" do | |
| 39 | @cc_po.com mon.loginE ndsOnHome( pw_reda c t e d ) | |
| 40 | @cc_ po.common. selectAddA ppointment Button("CC ") | |
| 41 | @cc_ po.communi tyCare.eli gibility_y es_element .click | |
| 42 | @cc_ po.communi tyCare.con tinue_btn | |
| 43 | end | |
| 44 | ||
| 45 | it "ve rify the T ype of Car e section and drop-d own list" do | |
| 46 | @cc_ po.communi tyCare.fac ility_radi o_btn_elem ents[1].cl ick | |
| 47 | @cc_ po.communi tyCare.car e_type_sec tion_eleme nt.when_vi sible(TIME _OUT_LIMIT ) | |
| 48 | actu al_content = @cc_po. communityC are.care_t ype_sectio n_element. text.split ("\n") | |
| 49 | expe cted_conte nt = [\ | |
| 50 | "S tep 4: Typ e of Care" , | |
| 51 | "* What type of care d o you need ?", | |
| 52 | "S elect","Au diology (h earing aid support)" , "Audiolo gy (routin e hearing exam)","Fi nd a Provi der (prima ry care)", "Nutritio n (routine exam)", " Optometry (routine e ye exam)", "Podiatry (routine exam)", "P rimary Car e (routine appointme nt)", | |
| 53 | ] | |
| 54 | comp _text(expe cted_conte nt, actual _content) | |
| 55 | end | |
| 56 | ||
| 57 | it "ve rify care type selec tion gener ates addit ional ques tion" do | |
| 58 | @cc_ po.communi tyCare.sel ectTypeOfC are("Optom etry (rout ine eye ex am)") | |
| 59 | @cc_ po.communi tyCare.car e_type_con tinue_elem ent.when_v isible(TIM E_OUT_LIMI T) | |
| 60 | actu al_content = @cc_po. communityC are.care_t ype_contin ue_element .text.spli t("\n") | |
| 61 | expe cted_conte nt = [\ | |
| 62 | "* Do you wi sh to cont inue with your reque st?", | |
| 63 | "Y es", "No" | |
| 64 | ] | |
| 65 | comp _text(expe cted_conte nt, actual _content) | |
| 66 | expe ct(@cc_po. communityC are.con_ye s_element. selected?) .to eq fal se | |
| 67 | expe ct(@cc_po. communityC are.con_no _element.s elected?). to eq fals e | |
| 68 | end | |
| 69 | ||
| 70 | it "sh ould verif y Continue button re main disab led when No radio b utton is s elected" d o | |
| 71 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 72 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq false | |
| 73 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq("Th is app cur rently onl y supports routine e ye exams. If you hav e other ne eds, pleas e contact your Prima ry Care Pr ovider to discuss th e issue. I f you are distance e ligible an d do not h ave a Prim ary Care P rovider, y ou can use this app to request help in g etting one assigned. ") | |
| 74 | end | |
| 75 | ||
| 76 | it "co ntinue but ton should be enable d selectio n of Yes" do | |
| 77 | @cc_ po.communi tyCare.con _yes_eleme nt.click | |
| 78 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq true | |
| 79 | end | |
| 80 | ||
| 81 | it "sh ould verif y selectio n of Audio logy gener ates prope r routine exam messa ge" do | |
| 82 | @cc_ po.communi tyCare.sel ectTypeOfC are("Audio logy (hear ing aid su pport)") | |
| 83 | 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.") | |
| 84 | end | |
| 85 | ||
| 86 | it "sh ould verif y the expe cted infor mational l anguages a re display ed" do | |
| 87 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 88 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq("Th is request is for he aring aid support on ly. If you have othe r needs, p lease cont act your P rimary Car e Provider to discus s the issu e. If you are distan ce eligibl e and do n ot have a Primary Ca re Provide r, you can use this app to req uest help in getting one assig ned.") | |
| 89 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq false | |
| 90 | end | |
| 91 | ||
| 92 | it "sh ould verif y selecti on of Audi ology gene rates prop er routine exam mess age" do | |
| 93 | @cc_ po.communi tyCare.sel ectTypeOfC are("Audio logy (rout ine hearin g exam)") | |
| 94 | expe ct(@cc_po. communityC are.care_t yp_details _element.t ext).to eq ("This inc ludes an o ffice visi t for a he aring exam and evalu ation usin g non-inva sive tests to check your heari ng and inn er ear hea lth. The e xam may le ad to prev ention and treatment recommend ations, a request fo r further consultati on, and/or a recomme ndation fo r hearing aids. A ro utine exam is not fo r any new or sudden changes wi th your he aring or e ars.") | |
| 95 | end | |
| 96 | ||
| 97 | it "sh ould verif y the expe cted infor mational l anguages a re display ed" do | |
| 98 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 99 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq("Th is request is for ro utine hear ing exam 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.") | |
| 100 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq false | |
| 101 | end | |
| 102 | ||
| 103 | it "sh ould verif y selectio n of Podia try genera tes proper routine e xam messag e" do | |
| 104 | @cc_ po.communi tyCare.sel ectTypeOfC are("Podia try (routi ne exam)") | |
| 105 | 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 xam of the foot, ank le and rel ated struc tures of t he leg. Th e exam may lead to d iagnosis a nd treatme nt to incl ude common condition s like cal lous, buni ons, and o ther condi tions requ iring in o ffice trea tment, ort hotics, an d possibly the need for surger y. If you are experi encing any acute con ditions or sudden on set of pai n, break i n the skin with poss ible infec tion, plea se contact your loca l VAMC.") | |
| 106 | end | |
| 107 | ||
| 108 | it "sh ould verif y the expe cted infor mational l anguages a re display ed" do | |
| 109 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 110 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq("Th is request currently only supp orts routi ne podiatr y exams. I f you have other nee ds, please contact y our Primar y Care Pro vider to d iscuss thi s issue. I f you are distance e ligible an d do not h ave a Prim ary Care P rovider, y ou can use this app to request help in g etting one assigned. ") | |
| 111 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq false | |
| 112 | end | |
| 113 | ||
| 114 | it "sh ould verif y selectio n of Prima ry Care ge nerates pr oper routi ne exam me ssage" do | |
| 115 | @cc_ po.communi tyCare.sel ectTypeOfC are("Find a Provider (primary care)") | |
| 116 | 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 .") | |
| 117 | end | |
| 118 | ||
| 119 | it "sh ould verif y the expe cted infor mational l anguages a re display ed" do | |
| 120 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 121 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq("Th is request currently only supp orts the f inding of a Primary Care Provi der. If yo u have oth er needs, please con tact your local VA M edical Cen ter to dis cuss this issue. If you are di stance eli gible and do not hav e a Primar y Care Pro vider, you can use t his app to request h elp in get ting one a ssigned.") | |
| 122 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq false | |
| 123 | end | |
| 124 | ||
| 125 | it "sh ould selec t Nutritio n" do | |
| 126 | @cc _po.commun ityCare.se lectTypeOf Care("Nutr ition (rou tine exam) ") | |
| 127 | exp ect(@cc_po .community Care.care_ typ_detail s_element. text).to e q("This in cludes off ice visit( s) which w ill provid e educatio n on a hea lthy lifes tyle inclu ding food and drink choices, r eading foo d labels, and limits on nutrit ional inta ke.") | |
| 128 | end | |
| 129 | ||
| 130 | it "sh ould verif y selectio n of Nutri tion gener ates prope r routine exam messa ge" do | |
| 131 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 132 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq("Th is include s office v isit(s) wh ich will p rovide edu cation on a healthy lifestyle including food and d rink choic es, readin g food lab els, and l imits on n utritional intake. I f you have other nee ds, please contact y our local VA Medical Center to discuss t his issue. If you ar e distance eligible and do not have a Pr imary Care Provider, you can u se this ap p to reque st help in getting o ne assigne d.") | |
| 133 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq false | |
| 134 | end | |
| 135 | ||
| 136 | it "sh ould verif y selectio n of Prima ry Care ge nerates pr oper routi ne exam me ssage" do | |
| 137 | @cc_ po.communi tyCare.sel ectTypeOfC are("Prima ry Care (r outine app ointment)" ) | |
| 138 | expe ct(@cc_po. communityC are.care_t yp_details _element.t ext).to eq ("This inc ludes offi ce visit(s ) with a P rimary Car e Provider , focused on routine /acute pat ient compl aints, wel lness and disease pr evention r esulting i n improved veteran h ealth.") | |
| 139 | end | |
| 140 | ||
| 141 | it "sh ould verif y selectio n of Nutri tion gener ates prope r routine exam messa ge" do | |
| 142 | @cc_ po.communi tyCare.con _no_elemen t.click | |
| 143 | expe ct(@cc_po. communityC are.no_cus tm_msg_ele ment.text) .to eq("Th is include s office v isit(s) wi th a Prima ry Care Pr ovider, fo cused on r outine/acu te patient complaint s, wellnes s and dise ase preven tion resul ting in im proved vet eran healt h. If you have other needs, pl ease conta ct your lo cal VA Med ical Cente r to discu ss this is sue. If yo u are not distance e ligible an d do not h ave a Prim ary Care P rovider, y ou can use this app to request a VA Appo intment wi th a Prima ry Care Pr ovider.") | |
| 144 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq false | |
| 145 | end | |
| 146 | ||
| 147 | it "sh ould verif y 'Previou s' and 'Ex it' button s are alwa ys enabled and 'Conf irmation' modal is d isplayed" do | |
| 148 | expe ct(@cc_po. communityC are.previo us_btn_ele ment.enabl ed?).to eq true | |
| 149 | expe ct(@cc_po. communityC are.exit_b utton_elem ent.enable d?).to eq true | |
| 150 | end | |
| 151 | ||
| 152 | it "sh ould verif y the cont ent of Exi t Modal" d o | |
| 153 | @cc_ po.communi tyCare.exi t_button | |
| 154 | actu al_content = @cc_po. modal.exit _modal_ele ment.text. split("\n" ) | |
| 155 | expe cted_conte nt = [\ | |
| 156 | "Exi t Confirma tion", | |
| 157 | "You are about to leave New Appoin tment/Requ est form. Any change s you have made will be lost. Do you wan t to conti nue?", | |
| 158 | "Yes No" | |
| 159 | ||
| 160 | ] | |
| 161 | comp _text(expe cted_conte nt, actual _content) | |
| 162 | @cc_ po.modal.c ancel_yes | |
| 163 | ||
| 164 | end | |
| 165 | ||
| 166 | end | |
| 167 | ||
| 168 | def comp _text(expe cted_conte nt, actual _content) | |
| 169 | expect ed_content .each_with _index do |expectedS creenRow, i| | |
| 170 | expe ct(actual_ content[i] .to_s.stri p).to eq(e xpectedScr eenRow.to_ s.strip) | |
| 171 | end | |
| 172 | expect (expected_ content.si ze).to eq( actual_con tent.size) | |
| 173 | end | |
| 174 | ||
| 175 | end | |
| 176 | ||
| 177 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.