Produced by Araxis Merge on 5/30/2019 1:49:21 PM Eastern Daylight 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 | var_web_release_4_18.zip\var_web_release_4_8_ebb0ab2774d.zip\veteran-appointment-requests\test\watir-ruby\spec\landing | landing_page_Not_Authenticated_spec.rb | Fri May 10 18:55:49 2019 UTC |
| 2 | var_web_release_4_18.zip\var_web_release_4_8_ebb0ab2774d.zip\veteran-appointment-requests\test\watir-ruby\spec\landing | landing_page_Not_Authenticated_spec.rb | Wed May 29 22:08:03 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 588 |
| 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 | ||
| 8 | require_re lative '.. /..//modul e/DriverUt ility' | |
| 9 | require_re lative '.. /rspec_hel per' | |
| 10 | require_re lative '.. /..//pages /landing' | |
| 11 | require_re lative '.. /../pages/ login' | |
| 12 | require_re lative '.. /../helper /modal' | |
| 13 | require_re lative '.. /../pages/ eula' | |
| 14 | require_re lative '.. /../pages/ roa' | |
| 15 | require_re lative '.. /../pages/ user_menu' | |
| 16 | require_re lative '.. /../pages/ launchpad' | |
| 17 | require_re lative '.. /../common /common' | |
| 18 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 19 | ||
| 20 | describe ' [Story# VA R-1748: La nding - No t authenti cated ] | |
| 21 | [Story# VA R-2270: La nding Page - Not Aut henticated ] | |
| 22 | [Story# VA R-4079: Up date app v ersion on footer and about pag e] | |
| 23 | [Story# VA R-12417: A utomate Ve rsion Numb er Update 4.6.0] | |
| 24 | [story# VA R-14307-CC - Phone n umber link s should o pen the de fault acti on for the device or browser t hey are in ]' do | |
| 25 | ||
| 26 | include DriverUtil ity | |
| 27 | ||
| 28 | before(: all) do | |
| 29 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 30 | @landi ng = Landi ng.new(@dr iver) | |
| 31 | @login = Login.n ew(@driver ) | |
| 32 | @eula = Eula.new (@driver) | |
| 33 | @roa = Roa.new(@ driver) | |
| 34 | @user_ menu = Use rMenuOptio n.new(@dri ver) | |
| 35 | @launc hpad = Lau nchpad.new (@driver) | |
| 36 | @modal = Modal.n ew(@driver ) | |
| 37 | @commo n = Common .new(@driv er) | |
| 38 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 39 | @cc_po = Communi tyCare_Pag eObject.ne w(@driver) | |
| 40 | end | |
| 41 | ||
| 42 | after(:a ll) do | |
| 43 | @drive r.close | |
| 44 | end | |
| 45 | ||
| 46 | context '[AC#VAR-1 804|TC#VAR -1901 - La nding Page - Not Aut henticated ] | |
| 47 | [AC#VAR-2 762,2344|T C#VAR-2768 - Rework Landing Pa ge - Not A uthenticat ed] | |
| 48 | [AC#VAR-4 148|TC#VAR -4149 - Ap p version update] | |
| 49 | [AC#VAR-5 151|TC#VAR -5152: Val idate Auto mate Versi on Number Update] | |
| 50 | [story# V AR-14820-C C - CC - U pdate Prov ider/Facil ity Locato r URL to v a.gov] | |
| 51 | [story# V AR-15448-C C - CC - U pdate URL and Verbia ge in Comm unity Care text]' do | |
| 52 | ||
| 53 | xit "E ULA" do | |
| 54 | Wati r::Wait.un til {@eula .accept_el ement.exis ts?} | |
| 55 | @eul a.accept_e lement.whe n_present( TIME_OUT_L IMIT) | |
| 56 | expe ct(@eula.h as_expecte d_title?). to eq(true ) | |
| 57 | expe ct(@eula.a ccept_elem ent.presen t?).to eq( true) | |
| 58 | @com mon.waitWh ileSpinner Present | |
| 59 | @eul a.accept_e lement.cli ck | |
| 60 | @com mon.waitWh ileSpinner Present | |
| 61 | end | |
| 62 | ||
| 63 | it "Ve rified scr een conten t" do | |
| 64 | actu al_content = @landin g.screen_c ontent.spl it("\n") | |
| 65 | if(@ landing.is CCEnabled ==true) | |
| 66 | ex pected_con tent=[\ | |
| 67 | "Welco me to VA A ppointment s App", | |
| 68 | "Welco me to VA A ppointment s", | |
| 69 | "The V A Appointm ent app al lows patie nts to:", | |
| 70 | "Sched ule appoin tments for supported types of care direc tly with t he VA faci lity.", | |
| 71 | "Submi t requests to a sche duling cle rk for a V A facility appointme nt.", | |
| 72 | "Submi t requests for non-V A appointm ents (Comm unity Care ) to a sch eduling cl erk (Veter ans eligib le under t he new Com munity Car e Program) .", | |
| 73 | "Learn About Com munity Car e", | |
| 74 | "", | |
| 75 | "NOTE: This app is not mon itored by your VA do ctors. If you need u rgent care , please D ial 911", | |
| 76 | "Dial 9 1 1 from your mobi le device" , "or call the Veter ans Crisis Hotline a t 1-800-27 3-8255", | |
| 77 | "Dial the VA Vet eran Crisi s Hotline from your mobile dev ice", | |
| 78 | "and p ress 1.", | |
| 79 | "For u rgent matt ers relate d to an ap pointment within the next 72 h ours, plea se call yo ur facilit y. VA Faci lity Locat or.", | |
| 80 | "Login " | |
| 81 | ] | |
| 82 | elsi f(@landing .isCCEnabl ed ==false ) | |
| 83 | ||
| 84 | ex pected_con tent=[\ | |
| 85 | "Welco me to VA A ppointment s App", | |
| 86 | "Welco me to VA A ppointment s", | |
| 87 | "The V A Appointm ent app al lows patie nts to:", | |
| 88 | "Sched ule appoin tments for supported types of care direc tly with t he VA faci lity.", | |
| 89 | "Submi t requests to a sche duling cle rk for a V A facility appointme nt.", | |
| 90 | "NOTE: This app is not mon itored by your VA do ctors. If you need u rgent care , please D ial 911", | |
| 91 | "Dial 9 1 1 from your mobi le device" , "or call the Veter ans Crisis Hotline a t 1-800-27 3-8255", | |
| 92 | "Dial the VA Vet eran Crisi s Hotline from your mobile dev ice", | |
| 93 | "and p ress 1.", | |
| 94 | "For u rgent matt ers relate d to an ap pointment within the next 72 h ours, plea se call yo ur facilit y. VA Faci lity Locat or.", | |
| 95 | "Login " | |
| 96 | ] | |
| 97 | end | |
| 98 | ||
| 99 | expe cted_conte nt.each_wi th_index d o | expect edScreenRo w, i | | |
| 100 | ex pect(expec tedScreenR ow.strip). to include (actual_co ntent[i].s trip) | |
| 101 | end | |
| 102 | end | |
| 103 | ||
| 104 | it "ve rify the L earn About CC Modal content" d o | |
| 105 | @cc_ po.landing CC.learn_c c | |
| 106 | @cc_ po.landing CC.learn_c c_text_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT) | |
| 107 | p ac tual_conte nt = (@cc_ po.landing CC.learn_c c_text_ele ment.text) .split("\n ") | |
| 108 | ||
| 109 | expe cted_conte nt = [\ | |
| 110 | "Lea rn About C ommunity C are", | |
| 111 | "The new Commu nity Care Program al lows Veter ans who ar e already enrolled i n VA Healt h Care to receive he alth care in their c ommunity, while stil l having a ccess to t heir regul ar VA Heal th Care. V A Online S cheduling enhances t he Veteran 's communi ty care ex perience b y providin g an addit ional meth od for req uesting co mmunity ca re service s.", | |
| 112 | "", | |
| 113 | "To learn more about the new C ommunity C are Progra m, visit: https:// DNS . URL /oei/missi onAct/", | |
| 114 | "To access a c urrent lis t of appro ved provid ers, visit VA Facili ty Locator and selec t Communit y Care (No n-VA Healt h) from th e \"Search For\" dro pdown menu .", | |
| 115 | "OK" | |
| 116 | ] | |
| 117 | comp areContent s(expected _content, actual_con tent) | |
| 118 | @cc_ po.landing CC.learn_c c_ok_btn | |
| 119 | end | |
| 120 | ||
| 121 | it "Ap p header b ar: VA App ointments" do | |
| 122 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 123 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |
| 124 | expe ct(@landin g.text).to eq("The V A Appointm ent app al lows patie nts to:") | |
| 125 | end | |
| 126 | ||
| 127 | it "Te xt for all owed metho ds" do | |
| 128 | expe cted_conte nt =[\ | |
| 129 | "Sched ule appoin tments for supported types of care direc tly with t he VA faci lity.", | |
| 130 | "Submi t requests to a sche duling cle rk for a V A facility appointme nt."] | |
| 131 | actu al_content = @landin g.methods_ allowed.sp lit("\n") | |
| 132 | expe cted_conte nt.each_wi th_index d o | expect edScreenRo w, i | | |
| 133 | ex pect(expec tedScreenR ow.strip). to include (actual_co ntent[i].s trip) | |
| 134 | end | |
| 135 | end | |
| 136 | ||
| 137 | it "Va lidate urg ent care m essage" do | |
| 138 | #@la nding.info Line1_elem ent.when_v isible(TIM E_OUT_LIMI T) | |
| 139 | expe ct(@landin g.infoLine 1).to eq(" NOTE: This app is no t monitore d by your VA doctors . If you n eed urgent care, ple ase Dial 9 11\nDial 9 1 1 from your mobil e device\n or call th e Veterans Crisis Ho tline at 1 -800-273-8 255\nDial the VA Vet eran Crisi s Hotline from your mobile dev ice\nand p ress 1.\nF or urgent matters re lated to a n appointm ent within the next 72 hours, please cal l your fac ility. VA Facility L ocator.") | |
| 140 | ||
| 141 | end | |
| 142 | ||
| 143 | it "ve rify 911 l ink is ena bled" do | |
| 144 | expe ct(@landin g.dial911_ element.en abled?).to eq(true) | |
| 145 | end | |
| 146 | ||
| 147 | it "Va lidate 911 modal" do | |
| 148 | @lan ding.dial9 11 | |
| 149 | swit chWindowTo WindowHand leLast | |
| 150 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 151 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |
| 152 | ||
| 153 | end | |
| 154 | ||
| 155 | ||
| 156 | it "ve rify Dial Veteran Cr isis Phone number li nk is enab led" do | |
| 157 | expe ct(@landin g.dialVete ranCrisisL ink_elemen t.enabled? ).to eq(tr ue) | |
| 158 | end | |
| 159 | ||
| 160 | it "Di al Veteran Crisis Ph one number link moda l" do | |
| 161 | @lan ding.dialV eteranCris isLink | |
| 162 | swit chWindowTo WindowHand leLast | |
| 163 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 164 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |
| 165 | end | |
| 166 | ||
| 167 | it "Ve rify the D ial 911 Ph one Image is enabled " do | |
| 168 | expe ct(@landin g.dial911I mage_link_ element.en abled?).to eq(true) | |
| 169 | end | |
| 170 | ||
| 171 | it "Se lect Dial 911 Phone Image" do | |
| 172 | @lan ding.dial9 11Image_li nk | |
| 173 | swit chWindowTo WindowHand leLast | |
| 174 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 175 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |
| 176 | expe ct(@landin g.dial911I mage_eleme nt.attribu te("alt")) .to eq("Di al 9 1 1 f rom your m obile devi ce") | |
| 177 | end | |
| 178 | ||
| 179 | it "Se lect Veter an Crisis Phone Imag e" do | |
| 180 | expe ct(@landin g.dialVete ranCrisisI mage_eleme nt.attribu te("alt")) .to eq("Di al the VA Veteran Cr isis Hotli ne from yo ur mobile device") | |
| 181 | end | |
| 182 | ||
| 183 | it "ve rify Click ing on cri sis image link is en abled" do | |
| 184 | expe ct(@landin g.dialVete ranCrisisI mage_link_ element.en abled?).to eq(true) | |
| 185 | end | |
| 186 | ||
| 187 | it "Cl icking on crisis ima ge open " do | |
| 188 | @lan ding.dialV eteranCris isImage_li nk | |
| 189 | swit chWindowTo WindowHand leLast | |
| 190 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 191 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |
| 192 | end | |
| 193 | ||
| 194 | it "Se lect View VA Facilit y link" do | |
| 195 | @lan ding.vaFac ilityLink | |
| 196 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |
| 197 | expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion") | |
| 198 | expe ct(@landin g.confirmT ext).to eq ("You are about to l eave the V A Appointm ents app. Select CON TINUE to p roceed to the link i nformation selected, or select RETURN to return to the VA Ap pointments app.") | |
| 199 | expe ct(@modal. buttons_el ements[1]. text).to e q("Return" ) | |
| 200 | end | |
| 201 | ||
| 202 | it "cl icking ret urn from V iew VA fac ilities re turns to l anding" do | |
| 203 | @mod al.buttons _elements[ 1].click | |
| 204 | #Con firmation Continue | |
| 205 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 206 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |
| 207 | end | |
| 208 | ||
| 209 | it "co ntinue to view VA fa cilities" do | |
| 210 | @lan ding.vaFac ilityLink | |
| 211 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |
| 212 | @mod al.buttons _elements[ 0].click | |
| 213 | #Vis iting exte rnal site | |
| 214 | swit chWindowTo WindowHand leLast | |
| 215 | expect(get CurrentURL ).to eq("h ttps:// DNS . URL /find-loca tions/") | |
| 216 | end | |
| 217 | ||
| 218 | it "Cl ose and re turn back to landing " do | |
| 219 | swit chWindowTo WindowHand leFirst | |
| 220 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 221 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |
| 222 | end | |
| 223 | ||
| 224 | it "Ve rify login button is present" do | |
| 225 | @lan ding.login _element.w hen_visibl e(TIME_OUT _LIMIT) | |
| 226 | expe ct(@landin g.has_expe cted_title ?).to eq(t rue) | |
| 227 | expe ct(@landin g.login_el ement.visi ble?).to e q(true) | |
| 228 | end | |
| 229 | ||
| 230 | ||
| 231 | xit "L ogin with not authen ticated us er" do | |
| 232 | @lan ding.login | |
| 233 | @log in.login_e lement.whe n_visible( TIME_OUT_L IMIT) | |
| 234 | expe ct(@login. has_expect ed_title?) .to eq(tru e) | |
| 235 | @log in.login_w ithout_pas sing_ROA(" zztest.pat ient01", " pass", "D1 23401") | |
| 236 | end | |
| 237 | ||
| 238 | xit "R OA not acc epted. Ac cept ROA" do | |
| 239 | @roa .title_ele ment.when_ present | |
| 240 | !(45 ).times{ b reak if (@ roa.title == "Right Of Access" ); sleep 1 } | |
| 241 | ||
| 242 | @roa .nextButto n_element. when_visib le(TIME_OU T_LIMIT) | |
| 243 | expe ct(@roa.ha s_expected _title?).t o eq(true) | |
| 244 | @roa .nextButto n | |
| 245 | ||
| 246 | @roa .verify_el ement.when _visible(T IME_OUT_LI MIT) | |
| 247 | @roa .verify | |
| 248 | end | |
| 249 | ||
| 250 | xit "L anding pag e" do | |
| 251 | @com mon.waitWh ileSpinner Present | |
| 252 | @lan ding.foote rUserInfo_ element.wh en_visible (TIME_OUT_ LIMIT) | |
| 253 | Wati r::Wait.un til {@land ing.footer UserInfo = = "Logged in as pati ent01, zzt est"} | |
| 254 | expe ct(@landin g.footerUs erInfo).to eq("Logge d in as pa tient01, z ztest") | |
| 255 | @com mon.waitWh ileSpinner Present | |
| 256 | @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT) | |
| 257 | expe ct(@landin g_appointm ents.prima ry_header) .to eq("Ap pointments /Requests" ) | |
| 258 | expe ct(@landin g_appointm ents.reque st_header) .to eq("Re quests") | |
| 259 | ||
| 260 | end | |
| 261 | ||
| 262 | xit "L ogout and Log in aga in and ver ify ROA sc reen does not displa y" do | |
| 263 | @use r_menu.use rMenu_elem ent.when_p resent(TIM E_OUT_LIMI T) | |
| 264 | @use r_menu.use rMenu | |
| 265 | @use r_menu.log Out | |
| 266 | ||
| 267 | @lau nchpad.log in_element .when_visi ble(TIME_O UT_LIMIT) | |
| 268 | ||
| 269 | goTo (VAR_BASE_ URL) | |
| 270 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 271 | expe ct(@landin g.has_expe cted_title ?).to eq(t rue) | |
| 272 | ||
| 273 | @lan ding.login _element.w hen_visibl e(TIME_OUT _LIMIT) | |
| 274 | @lan ding.login | |
| 275 | ||
| 276 | @log in.login_e lement.whe n_visible( TIME_OUT_L IMIT) | |
| 277 | expe ct(@login. has_expect ed_title?) .to eq(tru e) | |
| 278 | @log in.login_w ith(VarVet eran01) | |
| 279 | ||
| 280 | @com mon.waitWh ileSpinner Present | |
| 281 | ||
| 282 | @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT) | |
| 283 | ||
| 284 | @com mon.waitWh ileSpinner Present | |
| 285 | ||
| 286 | Wati r::Wait.un til { @lan ding_appoi ntments.ad d_top_btn_ element.pr esent? } | |
| 287 | @lan ding_appoi ntments.ad d_top_btn_ element.wh en_present (TIME_OUT_ LIMIT) | |
| 288 | ||
| 289 | ||
| 290 | @lan ding.foote rUserInfo_ element.wh en_present (TIME_OUT_ LIMIT) | |
| 291 | Wati r::Wait.un til {@land ing.footer UserInfo = = "Logged in as pati ent01, zzt est"} | |
| 292 | expe ct(@landin g.footerUs erInfo).to eq("Logge d in as pa tient01, z ztest") | |
| 293 | end | |
| 294 | ||
| 295 | end | |
| 296 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.