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 | var_CC_find_PCP_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 | var_CC_find_PCP_spec.rb | Fri Dec 7 13:25:56 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 398 |
| 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 '.. /../pages/ landing_no tification s' | |
| 6 | require_re lative '.. /../pages/ appointmen ts/request _appointme nt_detail' | |
| 7 | require 'w atir-scrol l' | |
| 8 | ||
| 9 | describe ' [Story VAR -8701 :VAR - CC Spec ialty/Find a PCP - U pdate to A ppointment and Provi der Prefer ences wiza rd pages] | |
| 10 | [Story VAR -11042: VA R - CC Fin d PCP - Ve teran Canc elling a F ind PCP re quest]', : varList_Mo ckService => false d o | |
| 11 | include DriverUtil ity | |
| 12 | include DateUtilit y | |
| 13 | include OracleUtil ity | |
| 14 | before(: all) do | |
| 15 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 16 | @cc_po = Communi tyCare_Pag eObject.ne w(@driver) | |
| 17 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 18 | @landi ng_notific ations = L andingNoti fications. new(@drive r) | |
| 19 | @reque st_appoint ment_detai l = Reques tAppointme ntDetail.n ew(@driver ) | |
| 20 | @@sixD aysLater= getDateNth DaysFromNo w(6,"%m/%d /%Y") | |
| 21 | end | |
| 22 | ||
| 23 | after(:a ll) do | |
| 24 | @cc_po .loginLogo ut.logout | |
| 25 | end | |
| 26 | ||
| 27 | context "AC#11218| TC#11219:V AR - CC Sp ecialty/Fi nd a PCP - Update to Appointme nt and Pro vider Pref erences wi zard pages " do | |
| 28 | ||
| 29 | it "Lo gin and se lect PCP c are type a nd navigat e to Provi der Prefer ence wizar d" do | |
| 30 | @cc_po.com mon.loginE ndsOnHome( pw_reda c t e d ) | |
| 31 | @cc_ po.common. selectAddA ppointment Button("CC ") | |
| 32 | @cc_ po.communi tyCare.eli gibility_y es_element .click | |
| 33 | @cc_ po.communi tyCare.con tinue_btn | |
| 34 | @cc_ po.communi tyCare.fac ility_radi o_btn_elem ents[1].cl ick | |
| 35 | @cc_ po.communi tyCare.car e_type = " Find a Pro vider (pri mary care) " | |
| 36 | @cc_ po.communi tyCare.con _yes_eleme nt.click | |
| 37 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 38 | end | |
| 39 | ||
| 40 | it "Ve rify the P rovider Pr eference W izard cont ents" do | |
| 41 | actu al_content = @cc_po. communityC are.provid er_pref_el ement.text .split("\n ") | |
| 42 | expe cted_conte nt = [\ | |
| 43 | "* requi red field" , | |
| 44 | "Step 5: Provider" , | |
| 45 | "Prefere nces", | |
| 46 | "Please indicate t he attribu tes you ar e looking for in a p rovider.", | |
| 47 | "Preferr ed Locatio n", | |
| 48 | "* City" , | |
| 49 | "* State ", | |
| 50 | " Select ", | |
| 51 | "AL","AK ","AR","AS ","AZ","CA ","CO","CT ","DE","DC ","FL","GA ","GU","HI ","ID","IL ","IN","IA ","KS","KY ","LA","ME ","MD","MA ","MI","MN ","MS","MO ","MT","NE ","NV","NH ","NJ","NM ","NY","NC ","ND","MP ","OH","OK ","OR","PA ","PR","RI ","SC","SD ","TN","TX ","UT","VI ","VT","VA ","WA","WV ","WI","WY ", | |
| 52 | "ZIP Cod e", | |
| 53 | " * How many miles away from this loca tion are y ou willing to travel ?", | |
| 54 | "10 25 5 0 100 or m ore", | |
| 55 | "* Prefe rred Langu age Spoken ", | |
| 56 | " Select ", | |
| 57 | "English ", | |
| 58 | "Chinese ", | |
| 59 | "French" , | |
| 60 | "German" , | |
| 61 | "Italian ", | |
| 62 | "Korean" , | |
| 63 | "Portugu ese", | |
| 64 | "Russian ", | |
| 65 | "Spanish ", | |
| 66 | "Tagalog (Filipino )", | |
| 67 | "Vietnam ese", | |
| 68 | "Other", | |
| 69 | "* Offic e Hours (c heck all t hat apply) ", | |
| 70 | "Weekday s", | |
| 71 | "Evening s", | |
| 72 | " Weeken ds", | |
| 73 | "Preferr ed Provide rs", | |
| 74 | "You may indicate up to thre e provider s. Please visit our Veteran Ch oice Locat or to find a provide r on our a pproved li st.", | |
| 75 | "Provide r Choice # 1", | |
| 76 | "First N ame", | |
| 77 | "Last Na me", | |
| 78 | "Practic e Name", | |
| 79 | "Street Address", | |
| 80 | "City", | |
| 81 | "State", "Select"," AL","AK"," AR","AS"," AZ","CA"," CO","CT"," DE","DC", "FL", "GA" , "GU", "H I", "ID", "IL", "IN" , "IA", "K S", "KY", "LA", "ME" , "MD", "M A", "MI", "MN", "MS" , "MO", "M T", "NE", "NV", "NH" , "NJ", "N M", "NY", "NC", "ND" , "MP", "O H", "OK", "OR", "PA" , "PR", "R I", "SC", "SD", "TN" , "TX", "U T", "VI", "VT", "VA" , "WA", "W V", "WI", "WY", | |
| 82 | "ZIP Cod e", | |
| 83 | "+ Add P rovider", | |
| 84 | "Other P rovider Pr eferences" , | |
| 85 | "(250 ch ar limit)" , | |
| 86 | "250 cha racters re maining", | |
| 87 | "Previou s", | |
| 88 | "Continu e", | |
| 89 | "Exit" | |
| 90 | ||
| 91 | ] | |
| 92 | comp _text(expe cted_conte nt, actual _content) | |
| 93 | end | |
| 94 | ||
| 95 | it "Fi ll out all the requi red fields and verif y 'Continu e' button is enabled " do | |
| 96 | @cc_ po.communi tyCare.pro vider_city = "Dulles " | |
| 97 | @cc_ po.communi tyCare.pro vider_stat e = "VA" | |
| 98 | @cc_ po.communi tyCare.pro vider_zip = "20166" | |
| 99 | @cc_ po.communi tyCare.pre ferred_mil es_element s[0].click | |
| 100 | @cc_ po.communi tyCare.pre ferred_lan g = "Chine se" | |
| 101 | @cc_ po.communi tyCare.off ice_hrs_el ements[1]. click | |
| 102 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq true | |
| 103 | end | |
| 104 | ||
| 105 | it "Go back, per form dista nce eligib ility chec k and veri fy address prepopula ted on Pre ffred Prov ider wizar d" do | |
| 106 | @cc_ po.communi tyCare.pre vious_btn | |
| 107 | @cc_ po.communi tyCare.pre vious_btn | |
| 108 | @cc_ po.communi tyCare.eli gibility_n o_element. click | |
| 109 | @cc_ po.communi tyCare.tra vel_no_ele ment.click | |
| 110 | @cc_ po.communi tyCare.unu sual_no_el ement.clic k | |
| 111 | @cc_ po.communi tyCare.add ress = '29 0 Sharon R d' | |
| 112 | @cc_ po.communi tyCare.add ress_eleme nt.fire_ev ent('onblu r') | |
| 113 | @cc_ po.communi tyCare.cit y = 'Lakev ille' | |
| 114 | @cc_ po.communi tyCare.cit y_element. fire_event ('onblur') | |
| 115 | @cc_ po.communi tyCare.sta te = 'CT' | |
| 116 | @cc_ po.communi tyCare.sta te_element .fire_even t('onblur' ) | |
| 117 | @cc_ po.communi tyCare.zip _code_1st_ question = '06039' | |
| 118 | @cc_ po.communi tyCare.zip _code_1st_ question_e lement.fir e_event('o nblur') | |
| 119 | @cc_ po.communi tyCare.fin d_nearest_ facility_e lement.cli ck | |
| 120 | @cc_ po.common. waitWhileS pinnerPres ent | |
| 121 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 122 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 123 | expe ct(@cc_po. communityC are.provid er_city).t o eq("Dull es") | |
| 124 | expe ct(@cc_po. communityC are.provid er_state). to eq('VA' ) | |
| 125 | expe ct(@cc_po. communityC are.provid er_zip).to eq("20166 ") | |
| 126 | @cc_ po.communi tyCare.pre vious_btn_ element.sc roll.to :b ottom | |
| 127 | @cc_ po.communi tyCare.pre vious_btn | |
| 128 | end | |
| 129 | ||
| 130 | it "Go back and change car e type and verify St ep 6 shows provider preference wizard" d o | |
| 131 | @cc_ po.communi tyCare.car e_type = " Audiology (hearing a id support )" | |
| 132 | @cc_ po.communi tyCare.con _yes_eleme nt.click | |
| 133 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 134 | @cc_ po.communi tyCare.cho ice1_date = @@sixDay sLater | |
| 135 | @cc_ po.communi tyCare.rad io_am_pm_e lements[1] .click | |
| 136 | @cc_ po.communi tyCare.pre vious_btn_ element.sc roll.to :b ottom | |
| 137 | @cc_ po.communi tyCare.cli ckContinue Button | |
| 138 | actu al_content = @cc_po. communityC are.provid er_pref_el ement.text .split("\n ") | |
| 139 | expe cted_conte nt = [\ | |
| 140 | "* requi red field" , | |
| 141 | "Step 6: Provider" , | |
| 142 | "Prefere nces", | |
| 143 | "Please indicate t he attribu tes you ar e looking for in a p rovider.", | |
| 144 | "Preferr ed Locatio n", | |
| 145 | "* City" , | |
| 146 | "* State ", | |
| 147 | " Select ", | |
| 148 | "AL","AK ","AR","AS ","AZ","CA ","CO","CT ","DE","DC ","FL","GA ","GU","HI ","ID","IL ","IN","IA ","KS","KY ","LA","ME ","MD","MA ","MI","MN ","MS","MO ","MT","NE ","NV","NH ","NJ","NM ","NY","NC ","ND","MP ","OH","OK ","OR","PA ","PR","RI ","SC","SD ","TN","TX ","UT","VI ","VT","VA ","WA","WV ","WI","WY ", | |
| 149 | "ZIP Cod e", | |
| 150 | " * How many miles away from this loca tion are y ou willing to travel ?", | |
| 151 | "10 25 5 0 100 or m ore", | |
| 152 | "* Prefe rred Langu age Spoken ", | |
| 153 | " Select ", | |
| 154 | "English ", | |
| 155 | "Chinese ", | |
| 156 | "French" , | |
| 157 | "German" , | |
| 158 | "Italian ", | |
| 159 | "Korean" , | |
| 160 | "Portugu ese", | |
| 161 | "Russian ", | |
| 162 | "Spanish ", | |
| 163 | "Tagalog (Filipino )", | |
| 164 | "Vietnam ese", | |
| 165 | "Other", | |
| 166 | "* Offic e Hours (c heck all t hat apply) ", | |
| 167 | "Weekday s", | |
| 168 | "Evening s", | |
| 169 | " Weeken ds", | |
| 170 | "Preferr ed Provide rs", | |
| 171 | "You may indicate up to thre e provider s. Please visit our Veteran Ch oice Locat or to find a provide r on our a pproved li st.", | |
| 172 | "Provide r Choice # 1", | |
| 173 | "First N ame", | |
| 174 | "Last Na me", | |
| 175 | "Practic e Name", | |
| 176 | "Street Address", | |
| 177 | "City", | |
| 178 | "State", "Select"," AL","AK"," AR","AS"," AZ","CA"," CO","CT"," DE","DC", "FL", "GA" , "GU", "H I", "ID", "IL", "IN" , "IA", "K S", "KY", "LA", "ME" , "MD", "M A", "MI", "MN", "MS" , "MO", "M T", "NE", "NV", "NH" , "NJ", "N M", "NY", "NC", "ND" , "MP", "O H", "OK", "OR", "PA" , "PR", "R I", "SC", "SD", "TN" , "TX", "U T", "VI", "VT", "VA" , "WA", "W V", "WI", "WY", | |
| 179 | "ZIP Cod e", | |
| 180 | "+ Add P rovider", | |
| 181 | "Other P rovider Pr eferences" , | |
| 182 | "(250 ch ar limit)" , | |
| 183 | "250 cha racters re maining", | |
| 184 | "Previou s", | |
| 185 | "Continu e", | |
| 186 | "Exit" | |
| 187 | ] | |
| 188 | comp _text(expe cted_conte nt, actual _content) | |
| 189 | end | |
| 190 | ||
| 191 | end | |
| 192 | ||
| 193 | def co mp_text(ex pected_con tent, actu al_content ) | |
| 194 | expe cted_conte nt.each_wi th_index d o |expecte dScreenRow , i| | |
| 195 | ex pect(actua l_content[ i].to_s.st rip).to eq (expectedS creenRow.t o_s.strip) | |
| 196 | end | |
| 197 | expe ct(expecte d_content. size).to e q(actual_c ontent.siz e) | |
| 198 | end | |
| 199 | ||
| 200 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.