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\landing | landing_page_Not_Authenticated_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\landing | landing_page_Not_Authenticated_spec.rb | Fri Dec 7 13:25:56 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 742 |
| Changed | 1 | 2 |
| Inserted | 1 | 1 |
| 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]' do | |||||
| 24 | ||||||
| 25 | include DriverUtil ity | |||||
| 26 | ||||||
| 27 | before(: all) do | |||||
| 28 | initia lizeConfig urations(V AR_BASE_UR L) | |||||
| 29 | @landi ng = Landi ng.new(@dr iver) | |||||
| 30 | @login = Login.n ew(@driver ) | |||||
| 31 | @eula = Eula.new (@driver) | |||||
| 32 | @roa = Roa.new(@ driver) | |||||
| 33 | @user_ menu = Use rMenuOptio n.new(@dri ver) | |||||
| 34 | @launc hpad = Lau nchpad.new (@driver) | |||||
| 35 | @modal = Modal.n ew(@driver ) | |||||
| 36 | @commo n = Common .new(@driv er) | |||||
| 37 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |||||
| 38 | end | |||||
| 39 | ||||||
| 40 | after(:a ll) do | |||||
| 41 | @drive r.close | |||||
| 42 | end | |||||
| 43 | ||||||
| 44 | context '[AC#VAR-1 804|TC#VAR -1901 - La nding Page - Not Aut henticated ] | |||||
| 45 | [AC#VAR-2 762,2344|T C#VAR-2768 - Rework Landing Pa ge - Not A uthenticat ed] | |||||
| 46 | [AC#VAR-4 148|TC#VAR -4149 - Ap p version update] | |||||
| 47 | [AC#VAR-5 151|TC#VAR -5152: Val idate Auto mate Versi on Number Update] ' do | |||||
| 48 | ||||||
| 49 | it "EU LA" do | |||||
| 50 | Wati r::Wait.un til {@eula .accept_el ement.exis ts?} | |||||
| 51 | @eul a.accept_e lement.whe n_present( TIME_OUT_L IMIT) | |||||
| 52 | expe ct(@eula.h as_expecte d_title?). to eq(true ) | |||||
| 53 | expe ct(@eula.a ccept_elem ent.presen t?).to eq( true) | |||||
| 54 | @com mon.waitWh ileSpinner Present | |||||
| 55 | ||||||
| 56 | @eul a.accept_e lement.cli ck | |||||
| 57 | @com mon.waitWh ileSpinner Present | |||||
| 58 | end | |||||
| 59 | ||||||
| 60 | it "Ve rified scr een conten t" do | |||||
| 61 | actu al_content = @landin g.screen_c ontent.spl it("\n") | |||||
| 62 | if(@ landing.is CCEnabled ==true) | |||||
| 63 | ex pected_con tent=[\ | |||||
| 64 | "Welco me to VA A ppointment s App", | |||||
| 65 | "Welco me to VA A ppointment s", | |||||
| 66 | "The V A Appointm ent app al lows patie nts to:", | |||||
| 67 | "Sched ule appoin tments for supported types of care direc tly with t he VA faci lity.", | |||||
| 68 | "Submi t requests to a sche duling cle rk for a V A facility appointme nt.", | |||||
| 69 | "Submi t requests for non V A appointm ents (Comm unity Care ) to a sch eduling cl erk (dista nce eligib le veteran s only).", | |||||
| 70 | "Learn About Com munity Car e", | |||||
| 71 | "", | |||||
| 72 | "NOTE: This app is not mon itored by your VA do ctors. If you need u rgent care , please D ial 911", | |||||
| 73 | "Dial 9 1 1 from your mobi le device" , "or call the Veter ans Crisis Hotline a t 1-800-27 3-8255", | |||||
| 74 | "Dial the VA Vet eran Crisi s Hotline from your mobile dev ice", | |||||
| 75 | "and p ress 1.", | |||||
| 76 | "For u rgent matt ers relate d to an ap pointment within the next 72 h ours, plea se call yo ur facilit y. View VA Facilitie s.", | |||||
| 77 | "Login " | |||||
| 78 | ] | |||||
| 79 | el sif(@landi ng.isCCEna bled ==fal se) | |||||
| 80 | ||||||
| 81 | expe cted_conte nt=[\ | |||||
| 82 | "Welco me to VA A ppointment s App", | |||||
| 83 | "Welco me to VA A ppointment s", | |||||
| 84 | "The V A Appointm ent app al lows patie nts to:", | |||||
| 85 | "Sched ule appoin tments for supported types of care direc tly with t he VA faci lity.", | |||||
| 86 | "Submi t requests to a sche duling cle rk for a V A facility appointme nt.", | |||||
| 87 | "NOTE: This app is not mon itored by your VA do ctors. If you need u rgent care , please D ial 911", | |||||
| 88 | "Dial 9 1 1 from your mobi le device" , "or call the Veter ans Crisis Hotline a t 1-800-27 3-8255", | |||||
| 89 | "Dial the VA Vet eran Crisi s Hotline from your mobile dev ice", | |||||
| 90 | "and p ress 1.", | |||||
| 91 | "For u rgent matt ers relate d to an ap pointment within the next 72 h ours, plea se call yo ur facilit y. View VA Facilitie s.", | |||||
| 92 | "Login " | |||||
| 93 | ] | |||||
| 94 | end | |||||
| 95 | ||||||
| 96 | expe cted_conte nt.each_wi th_index d o | expect edScreenRo w, i | | |||||
| 97 | ex pect(expec tedScreenR ow.strip). to include (actual_co ntent[i].s trip) | |||||
| 98 | end | |||||
| 99 | end | |||||
| 100 | ||||||
| 101 | it "Ap p header b ar: VA App ointments" do | |||||
| 102 | #exp ect(@landi ng.has_exp ected_titl e?).to eq( true) | |||||
| 103 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 104 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 105 | expe ct(@landin g.text).to eq("The V A Appointm ent app al lows patie nts to:") | |||||
| 106 | end | |||||
| 107 | ||||||
| 108 | it "Te xt for all owed metho ds" do | |||||
| 109 | expe cted_conte nt =[\ | |||||
| 110 | "Sched ule appoin tments for supported types of care direc tly with t he VA faci lity.", | |||||
| 111 | "Submi t requests to a sche duling cle rk for a V A facility appointme nt."] | |||||
| 112 | actu al_content = @landin g.methods_ allowed.sp lit("\n") | |||||
| 113 | expe cted_conte nt.each_wi th_index d o | expect edScreenRo w, i | | |||||
| 114 | ex pect(expec tedScreenR ow.strip). to include (actual_co ntent[i].s trip) | |||||
| 115 | end | |||||
| 116 | end | |||||
| 117 | ||||||
| 118 | it "Va lidate urg ent care m essage" do | |||||
| 119 | #@la nding.info Line1_elem ent.when_v isible(TIM E_OUT_LIMI T) | |||||
| 120 | 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. Vie w VA Facil ities.") | |||||
| 121 | ||||||
| 122 | end | |||||
| 123 | ||||||
| 124 | it "Va lidate 911 modal" do | |||||
| 125 | #Sel ect Dial 9 11 and ver ify the co nfirmation modal | |||||
| 126 | @lan ding.dial9 11 | |||||
| 127 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 128 | expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion") | |||||
| 129 | expe ct(@landin g.confirmT ext).to eq ("You are about to d ial the nu mber on yo ur mobile device. Se lect CONTI NUE to pro ceed, or s elect RETU RN to retu rn to the VA Appoint ments app. ") | |||||
| 130 | end | |||||
| 131 | ||||||
| 132 | it "Va lidate cli cking retu rn takes b ack to lan ding page" do | |||||
| 133 | @lan ding.retur n | |||||
| 134 | ||||||
| 135 | #Con firmation Continue | |||||
| 136 | expe ct(@landin g.has_expe cted_title ?).to eq(t rue) | |||||
| 137 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 138 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 139 | end | |||||
| 140 | ||||||
| 141 | it "Va lidate con tinue for 911 takes you to cal l window" do | |||||
| 142 | @lan ding.dial9 11 | |||||
| 143 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 144 | expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion") | |||||
| 145 | @lan ding.conti nue | |||||
| 146 | ||||||
| 147 | #Dia l 911 call window | |||||
| 148 | swit chWindowTo WindowHand leLast | |||||
| 149 | expe ct(getCurr entURL).to eq("about :blank") | |||||
| 150 | end | |||||
| 151 | ||||||
| 152 | it "Cl ose window and retur n to landi ng" do | |||||
| 153 | swit chWindowTo WindowHand leFirst | |||||
| 154 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 155 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 156 | ||||||
| 157 | end | |||||
| 158 | ||||||
| 159 | it "Di al Veteran Crisis Ph one number link moda l" do | |||||
| 160 | @lan ding.dialV eteranCris isLink | |||||
| 161 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 162 | expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion") | |||||
| 163 | expe ct(@landin g.confirmT ext).to eq ("You are about to d ial the nu mber on yo ur mobile device. Se lect CONTI NUE to pro ceed, or s elect RETU RN to retu rn to the VA Appoint ments app. ") | |||||
| 164 | end | |||||
| 165 | ||||||
| 166 | it "cl icking ret urn takes you back t o landing page" do | |||||
| 167 | @lan ding.retur n | |||||
| 168 | ||||||
| 169 | #Con firmation Continue | |||||
| 170 | expe ct(@landin g.has_expe cted_title ?).to eq(t rue) | |||||
| 171 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 172 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 173 | end | |||||
| 174 | ||||||
| 175 | it "cl icking con tinue take s you to c risis link dial wind ow" do | |||||
| 176 | @lan ding.dialV eteranCris isLink | |||||
| 177 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 178 | @lan ding.conti nue | |||||
| 179 | ||||||
| 180 | #Dia l Veteran Crisis cal l window | |||||
| 181 | swit chWindowTo WindowHand leLast | |||||
| 182 | expe ct(getCurr entURL).to eq("about :blank") | |||||
| 183 | end | |||||
| 184 | ||||||
| 185 | it "cl ose and re turn back to landing from cris is window" do | |||||
| 186 | swit chWindowTo WindowHand leFirst | |||||
| 187 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 188 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 189 | end | |||||
| 190 | ||||||
| 191 | it "Se lect Dial 911 Phone Image" do | |||||
| 192 | ||||||
| 193 | 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") | |||||
| 194 | end | |||||
| 195 | ||||||
| 196 | it "cl icking on dial 911 i mage confi rmation mo dal" do | |||||
| 197 | @lan ding.dial9 11Image_li nk | |||||
| 198 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 199 | expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion") | |||||
| 200 | expe ct(@landin g.confirmT ext).to eq ("You are about to d ial the nu mber on yo ur mobile device. Se lect CONTI NUE to pro ceed, or s elect RETU RN to retu rn to the VA Appoint ments app. ") | |||||
| 201 | end | |||||
| 202 | ||||||
| 203 | it "cl icking ret urn takes you back t o landing page" do | |||||
| 204 | @lan ding.retur n | |||||
| 205 | ||||||
| 206 | #Con firmation Continue | |||||
| 207 | ||||||
| 208 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 209 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 210 | end | |||||
| 211 | ||||||
| 212 | it "cl icking con tinue from 911 image modal tak es you to dial scree n" do | |||||
| 213 | @lan ding.dial9 11Image_li nk | |||||
| 214 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 215 | @lan ding.conti nue | |||||
| 216 | ||||||
| 217 | #Dia l 911 call window | |||||
| 218 | swit chWindowTo WindowHand leLast | |||||
| 219 | expe ct(getCurr entURL).to eq("about :blank") | |||||
| 220 | end | |||||
| 221 | ||||||
| 222 | it "cl ose and re tuen back to landing page" do | |||||
| 223 | swit chWindowTo WindowHand leFirst | |||||
| 224 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 225 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 226 | end | |||||
| 227 | ||||||
| 228 | it "Se lect Veter an Crisis Phone Imag e" do | |||||
| 229 | 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") | |||||
| 230 | end | |||||
| 231 | ||||||
| 232 | it "Cl icking on crisis ima ge open th e confirma tion modal " do | |||||
| 233 | @lan ding.dialV eteranCris isImage_li nk | |||||
| 234 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 235 | expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion") | |||||
| 236 | expe ct(@landin g.confirmT ext).to eq ("You are about to d ial the nu mber on yo ur mobile device. Se lect CONTI NUE to pro ceed, or s elect RETU RN to retu rn to the VA Appoint ments app. ") | |||||
| 237 | end | |||||
| 238 | ||||||
| 239 | it "cl ick return to go bac k to landi ng" do | |||||
| 240 | @lan ding.retur n | |||||
| 241 | ||||||
| 242 | #Con firmation Continue | |||||
| 243 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 244 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 245 | end | |||||
| 246 | ||||||
| 247 | it "cl ick contin ue on cris is image m odal to go to dial s creen" do | |||||
| 248 | @lan ding.dialV eteranCris isImage_li nk | |||||
| 249 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 250 | @lan ding.conti nue | |||||
| 251 | ||||||
| 252 | #Dia l Veteran Crisis cal l window | |||||
| 253 | swit chWindowTo WindowHand leLast | |||||
| 254 | expe ct(getCurr entURL).to eq("about :blank") | |||||
| 255 | end | |||||
| 256 | ||||||
| 257 | it "cl ose and re turn back to landing " do | |||||
| 258 | swit chWindowTo WindowHand leFirst | |||||
| 259 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 260 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 261 | end | |||||
| 262 | ||||||
| 263 | it "Se lect View VA Facilit y link" do | |||||
| 264 | @lan ding.vaFac ilityLink | |||||
| 265 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 266 | expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion") | |||||
| 267 | 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.") | |||||
| 268 | expe ct(@modal. buttons_el ements[1]. text).to e q("Return" ) | |||||
| 269 | end | |||||
| 270 | ||||||
| 271 | it "cl icking ret urn from V iew VA fac ilities re turns to l anding" do | |||||
| 272 | @mod al.buttons _elements[ 1].click | |||||
| 273 | ||||||
| 274 | #Con firmation Continue | |||||
| 275 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 276 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 277 | end | |||||
| 278 | ||||||
| 279 | it "co ntinue to view VA fa cilities" do | |||||
| 280 | @lan ding.vaFac ilityLink | |||||
| 281 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 282 | @mod al.buttons _elements[ 0].click | |||||
| 283 | ||||||
| 284 | #Vis iting exte rnal site | |||||
| 285 | swit chWindowTo WindowHand leLast | |||||
| 286 | expect(get CurrentURL ).to eq("h ttps://www . DOMAIN . EX /directory /guide/div ision.asp? dnum=1") | |||||
| 287 | end | |||||
| 288 | ||||||
| 289 | it "Cl ose and re turn back to landing " do | |||||
| 290 | swit chWindowTo WindowHand leFirst | |||||
| 291 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 292 | expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome to VA Appo intments") | |||||
| 293 | end | |||||
| 294 | ||||||
| 295 | it "Ve rify login button is present" do | |||||
| 296 | @lan ding.login _element.w hen_visibl e(TIME_OUT _LIMIT) | |||||
| 297 | expe ct(@landin g.has_expe cted_title ?).to eq(t rue) | |||||
| 298 | expe ct(@landin g.login_el ement.visi ble?).to e q(true) | |||||
| 299 | end | |||||
| 300 | ||||||
| 301 | ||||||
| 302 | xit "L ogin with not authen ticated us er" do | |||||
| 303 | @lan ding.login | |||||
| 304 | @log in.login_e lement.whe n_visible( TIME_OUT_L IMIT) | |||||
| 305 | expe ct(@login. has_expect ed_title?) .to eq(tru e) | |||||
| 306 | @log in.login_w ithout_pas sing_ROA(" zztest.pat ient01", " pass", "D1 23401") | |||||
| 307 | end | |||||
| 308 | ||||||
| 309 | xit "R OA not acc epted. Ac cept ROA" do | |||||
| 310 | @roa .title_ele ment.when_ present | |||||
| 311 | !(45 ).times{ b reak if (@ roa.title == "Right Of Access" ); sleep 1 } | |||||
| 312 | ||||||
| 313 | @roa .nextButto n_element. when_visib le(TIME_OU T_LIMIT) | |||||
| 314 | expe ct(@roa.ha s_expected _title?).t o eq(true) | |||||
| 315 | @roa .nextButto n | |||||
| 316 | ||||||
| 317 | @roa .verify_el ement.when _visible(T IME_OUT_LI MIT) | |||||
| 318 | @roa .verify | |||||
| 319 | end | |||||
| 320 | ||||||
| 321 | xit "L anding pag e" do | |||||
| 322 | @com mon.waitWh ileSpinner Present | |||||
| 323 | @lan ding.foote rUserInfo_ element.wh en_visible (TIME_OUT_ LIMIT) | |||||
| 324 | Wati r::Wait.un til {@land ing.footer UserInfo = = "Logged in as pati ent01, zzt est"} | |||||
| 325 | expe ct(@landin g.footerUs erInfo).to eq("Logge d in as pa tient01, z ztest") | |||||
| 326 | @com mon.waitWh ileSpinner Present | |||||
| 327 | @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT) | |||||
| 328 | expe ct(@landin g_appointm ents.prima ry_header) .to eq("Ap pointments /Requests" ) | |||||
| 329 | expe ct(@landin g_appointm ents.reque st_header) .to eq("Re quests") | |||||
| 330 | ||||||
| 331 | end | |||||
| 332 | ||||||
| 333 | xit "L ogout and Log in aga in and ver ify ROA sc reen does not displa y" do | |||||
| 334 | @use r_menu.use rMenu_elem ent.when_p resent(TIM E_OUT_LIMI T) | |||||
| 335 | @use r_menu.use rMenu | |||||
| 336 | @use r_menu.log Out | |||||
| 337 | ||||||
| 338 | @lau nchpad.log in_element .when_visi ble(TIME_O UT_LIMIT) | |||||
| 339 | ||||||
| 340 | goTo (VAR_BASE_ URL) | |||||
| 341 | @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |||||
| 342 | expe ct(@landin g.has_expe cted_title ?).to eq(t rue) | |||||
| 343 | ||||||
| 344 | @lan ding.login _element.w hen_visibl e(TIME_OUT _LIMIT) | |||||
| 345 | @lan ding.login | |||||
| 346 | ||||||
| 347 | @log in.login_e lement.whe n_visible( TIME_OUT_L IMIT) | |||||
| 348 | expe ct(@login. has_expect ed_title?) .to eq(tru e) | |||||
| 349 | @log in.login_w ith(VarVet eran01) | |||||
| 350 | ||||||
| 351 | @com mon.waitWh ileSpinner Present | |||||
| 352 | ||||||
| 353 | @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT) | |||||
| 354 | ||||||
| 355 | @com mon.waitWh ileSpinner Present | |||||
| 356 | ||||||
| 357 | Wati r::Wait.un til { @lan ding_appoi ntments.ad d_top_btn_ element.pr esent? } | |||||
| 358 | @lan ding_appoi ntments.ad d_top_btn_ element.wh en_present (TIME_OUT_ LIMIT) | |||||
| 359 | ||||||
| 360 | ||||||
| 361 | @lan ding.foote rUserInfo_ element.wh en_present (TIME_OUT_ LIMIT) | |||||
| 362 | Wati r::Wait.un til {@land ing.footer UserInfo = = "Logged in as pati ent01, zzt est"} | |||||
| 363 | expe ct(@landin g.footerUs erInfo).to eq("Logge d in as pa tient01, z ztest") | |||||
| 364 | end | |||||
| 365 | ||||||
| 366 | end | |||||
| 367 | end | |||||
| 368 | ||||||
| 369 | ||||||
| 370 | ||||||
| 371 | ||||||
| 372 | ||||||
| 373 | T |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.