Produced by Araxis Merge on 5/10/2018 8:40:53 AM Central 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 | MHED_APPS_CIF.zip\VAR v4.2.7\var-web-4.2.7@0810ae549c1.zip\veteran-appointment-requests\test\watir-ruby\spec\community_care | va_enrollment_registration_spec.rb | Mon Apr 9 06:06:53 2018 UTC |
2 | MHED_APPS_CIF.zip\VAR v4.2.7\var-web-4.2.7@0810ae549c1.zip\veteran-appointment-requests\test\watir-ruby\spec\community_care | va_enrollment_registration_spec.rb | Thu May 3 13:47:21 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 378 |
Changed | 2 | 8 |
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 | ||
6 | describe ' [Story VAR -9257 :VA Facility Registrati on DFN Che ck – Add n ew page to support C C; | |
7 | VAR -9243 :Lea rn About C ommunity C are - Moda l and Info Text (Aut henticated w/out an ICN); | |
8 | VAR -9297 :VA Healthcare Enrollmen t ICN Chec k – Update to suppor t CC | |
9 | VAR -9730 :CC - Update e nrolled/no t register ed languag e]' do | |
10 | ||
11 | include DriverUtil ity | |
12 | shared_c ontext "Sh ared Test" do | |
13 | ||
14 | before(: all) do | |
15 | initia lizeConfig urations(C C_URL) | |
16 | @cc_po = Communi tyCare_Pag eObject.ne w(@driver) | |
17 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
18 | Watir: :Wait.unti l {@cc_po. eula.accep t_element. exists?} | |
19 | @cc_po .eula.acce pt_element .when_pres ent(TIME_O UT_LIMIT) | |
20 | @cc_po .eula.acce pt | |
21 | @cc_po .common.wa itWhileSpi nnerPresen t | |
22 | end | |
23 | ||
24 | after(:a ll) do | |
25 | @cc_po .loginLogo ut.logout | |
26 | end | |
27 | ||
28 | end | |
29 | ||
30 | context "AC#VAR-95 52|TC#VAR- 9553: VA F acility R egistratio n DFN Chec k – Add ne w page to support CC | |
31 | AC#VAR-10 169|TC#VAR -10170: CC - Update enrolled/n ot registe red langua ge" do | |
32 | includ e_context "Shared Te st" | |
33 | ||
34 | it "Lo gin" do | |
35 | @cc_ po.loginLo gout.login (NoDFNUser ) | |
36 | @cc_ po.eula.ac cept_eleme nt.when_pr esent(TIME _OUT_LIMIT ) | |
37 | @cc_ po.eula.ac cept | |
38 | slee p(5) | |
39 | @cc_ po.common. waitWhileS pinnerPres ent | |
40 | end | |
41 | ||
42 | it "Ve rify the a ll the inf o on Regis tration pa ge for Non -DFN User" do | |
43 | @cc_ po.landing CC.page_de tails_noDF N_element. wait_until _present(T IME_OUT_LI MIT) | |
44 | actu al_content = (@cc_po .landingCC .page_deta ils_noDFN_ element.te xt).split( "\n") | |
45 | expe cted_conte nt = [\ | |
46 | "U sing the V A Appointm ents App", | |
47 | "V eterans He alth Admin istration Facility R egistratio n Required ", | |
48 | "A lthough we found a r ecord of y our enroll ment with the Vetera ns Health Administra tion, we c annot find a record of you hav ing regist ered at a VA Healthc are facili ty.", | |
49 | "T o use this app to sc hedule or request an appointme nt at a VA facility, or to req uest commu nity care assistance , you need to be:", | |
50 | "A ctively en rolled in VA Healthc are, and", | |
51 | "R egistered with a VA Healthcare facility" , | |
52 | "T o register , please c ontact you r local fa cility's r egistratio n office." , | |
53 | "F or individ uals who d o not live near a VA facility, and who w ant to req uest commu nity care, registrat ion with y our closes t facility is still required. Learn Abou t Communit y Care", | |
54 | "T o find a f acility ne ar you, vi sit the VA Facility Locator." | |
55 | ] | |
56 | comp _text(expe cted_conte nt, actual _content) | |
57 | end | |
58 | ||
59 | it "Ve rify the L earn About CC Modal content fo r Non-DFN" do | |
60 | @cc_ po.landing CC.learn_c c | |
61 | @cc_ po.landing CC.learn_c c_text_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT) | |
62 | actu al_content = (@cc_po .landingCC .learn_cc_ text_eleme nt.text).s plit("\n") | |
63 | ||
64 | expe cted_conte nt = [\ | |
65 | "Lea rn About C ommunity C are", | |
66 | "The Veterans Choice Pro gram (VCP) , part of Community Care, allo ws Veteran s who are already en rolled in VA Healthc are to rec eive healt h care in their comm unity, whi le still h aving acce ss to thei r regular VA health care. Unde r the VCP, Veterans who have t o wait mor e than 30 days or tr avel over 40 miles a re able to receive c are in the community , connecti ng them to timely an d convenie nt access to health care. VCP 40 mile el igible Vet erans will now be ab le to subm it schedul ing reques ts directl y through the VA App ointments app.", | |
67 | "", | |
68 | "To learn more infor mation abo ut the Vet erans Choi ce Program and to se e if you a re eligibl e visit: h ttps://www . DNS /opa/choic eact/", | |
69 | "To access a current list of a pproved pr oviders, v isit: http s://www. DNS /opa/apps/ locator/in dex.html", | |
70 | "OK" | |
71 | ] | |
72 | comp _text(expe cted_conte nt, actual _content) | |
73 | slee p(4) | |
74 | @cc_ po.landing CC.link_ve t_choice | |
75 | @cc_ po.landing CC.modal_t itle_eleme nt.when_vi sible(TIME _OUT_LIMIT ) | |
76 | expe ct(@cc_po. landingCC. modal_titl e_element. text).to e q("Confirm ation") | |
77 | expe ct(@cc_po. landingCC. modal_cont ent_elemen t.text).to eq("You a re about t o leave th e VA Appoi ntments ap p. Select CONTINUE t o proceed to the lin k informat ion select ed, or sel ect RETURN to return to the VA Appointme nts app.") | |
78 | @cc_ po.landing CC.modal_r eturn_btn | |
79 | @cc_ po.landing CC.learn_c c_ok_btn | |
80 | end | |
81 | ||
82 | it "ve rify the U ser Menu h as all the options f or Non-DFN User" do | |
83 | @cc_ po.userMen u.userMenu _element.c lick | |
84 | expe ct(@cc_po. userMenu.a bout_eleme nt.text).t o eq("Abou t") | |
85 | expe ct(@cc_po. userMenu.h elp_elemen t.text).to eq("Help" ) | |
86 | expe ct(@cc_po. userMenu.l aunchpad_e lement.tex t).to eq(" Launchpad" ) | |
87 | expe ct(@cc_po. userMenu.l ogOut_elem ent.text). to eq("Log out") | |
88 | @cc_ po.userMen u.userMenu _element.c lick | |
89 | end | |
90 | ||
91 | it "Ve rify the e xternal li nk of 'VA Facility L ocator'" d o | |
92 | @cc_ po.landing CC.facilit y_locator_ link | |
93 | expe ct(@cc_po. landingCC. modal_titl e_element. text).to e q("Confirm ation") | |
94 | expe ct(@cc_po. landingCC. modal_cont ent_elemen t.text).to eq("You a re about t o leave th e VA Appoi ntments ap p. Select CONTINUE t o proceed to the lin k informat ion select ed, or sel ect RETURN to return to the VA Appointme nts app.") | |
95 | @cc_ po.landing CC.modal_r eturn_btn | |
96 | end | |
97 | ||
98 | it "Ve rify Landi ng page fo oter" do | |
99 | @cc_ po.landing .footerUse rInfo_elem ent.when_v isible(TIM E_OUT_LIMI T) | |
100 | Wati r::Wait.un til {@cc_p o.landing. footerUser Info == "L ogged in a s veteran0 2, zztest" } | |
101 | expe ct(@cc_po. landing.fo oterUserIn fo).to eq( "Logged in as vetera n02, zztes t") | |
102 | expe ct(@cc_po. landing.ap pVersion). to eq("VA Appointmen ts - v4.1. 0") | |
103 | end | |
104 | ||
105 | ||
106 | end | |
107 | ||
108 | context "AC#VAR-82 38|TC#VAR8 239:VA Hea lthcare En rollment I CN Check – Update to support C C" do | |
109 | includ e_context "Shared Te st" | |
110 | it "Lo gin" do | |
111 | @cc_ po.loginLo gout.login (NoICNUser ) | |
112 | @cc_ po.eula.ac cept_eleme nt.when_pr esent(TIME _OUT_LIMIT ) | |
113 | @cc_ po.eula.ac cept | |
114 | slee p(5) | |
115 | @cc_ po.common. waitWhileS pinnerPres ent | |
116 | end | |
117 | ||
118 | it "Ve rify the a ll the inf o on Enrol lment page for Non-I CN User" d o | |
119 | @cc_ po.landing CC.page_de tails_noIC N_element. wait_until _present(T IME_OUT_LI MIT) | |
120 | actu al_content = (@cc_po .landingCC .page_deta ils_noICN_ element.te xt).split( "\n") | |
121 | expe cted_conte nt = [\ | |
122 | "U sing the V A Appointm ents App", | |
123 | "V eterans He alth Admin istration Enrollment Required" , | |
124 | "C urrently, we cannot find a rec ord of you r enrollme nt with th e Veterans Health Ad ministrati on.", | |
125 | "T o use this app to sc hedule or request an appointme nt at a VA facility, or to req uest commu nity care assistance , you need to be:", | |
126 | "A ctively en rolled in VA Healthc are, and", | |
127 | "R egistered with a VA Healthcare facility" , | |
128 | "I f you have not enrol led, want to learn m ore, or wo uld like t o begin th e enrollme nt process , go to th e Apply fo r VA Healt h Benefits webpage. ", | |
129 | "I f you are enrolled, please con tact 1-877 -222-VETS Monday thr ough Frida y between 8 a.m. and 8 p.m. ET and a rep resentativ e will pro vide assis tance. You may also contact yo ur local V A Healthca re facilit y.", | |
130 | "F or individ uals who d o not live near a VA facility, and who w ant to req uest commu nity care, registrat ion with y our closes t facility is still required. Learn Abou t Communit y Care", | |
131 | "T o find a f acility ne ar you, vi sit the VA Facility Locator." | |
132 | ] | |
133 | comp _text(expe cted_conte nt, actual _content) | |
134 | end | |
135 | ||
136 | it "ve rify the L earn About CC Modal content" d o | |
137 | @cc_ po.landing CC.learn_c c | |
138 | @cc_ po.landing CC.learn_c c_text_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT) | |
139 | actu al_content = (@cc_po .landingCC .learn_cc_ text_eleme nt.text).s plit("\n") | |
140 | ||
141 | expe cted_conte nt = [\ | |
142 | "Lea rn About C ommunity C are", | |
143 | "The Veterans Choice Pro gram (VCP) , part of Community Care, allo ws Veteran s who are already en rolled in VA Healthc are to rec eive healt h care in their comm unity, whi le still h aving acce ss to thei r regular VA health care. Unde r the VCP, Veterans who have t o wait mor e than 30 days or tr avel over 40 miles a re able to receive c are in the community , connecti ng them to timely an d convenie nt access to health care. VCP 40 mile el igible Vet erans will now be ab le to subm it schedul ing reques ts directl y through the VA App ointments app.", | |
144 | "", | |
145 | "To learn more infor mation abo ut the Vet erans Choi ce Program and to se e if you a re eligibl e visit: h ttps://www . DNS /opa/choic eact/", | |
146 | "To access a current list of a pproved pr oviders, v isit: http s://www. DNS /opa/apps/ locator/in dex.html", | |
147 | "OK" | |
148 | ] | |
149 | comp _text(expe cted_conte nt, actual _content) | |
150 | ||
151 | @cc_ po.landing CC.link_ve t_choice | |
152 | @cc_ po.landing CC.modal_t itle_eleme nt.when_vi sible(TIME _OUT_LIMIT ) | |
153 | expe ct(@cc_po. landingCC. modal_titl e_element. text).to e q("Confirm ation") | |
154 | expe ct(@cc_po. landingCC. modal_cont ent_elemen t.text).to eq("You a re about t o leave th e VA Appoi ntments ap p. Select CONTINUE t o proceed to the lin k informat ion select ed, or sel ect RETURN to return to the VA Appointme nts app.") | |
155 | @cc_ po.landing CC.modal_r eturn_btn | |
156 | @cc_ po.landing CC.learn_c c_ok_btn | |
157 | end | |
158 | ||
159 | it "ve rify the U ser Menu h as all the options f or Non-ICN User" do | |
160 | @cc_ po.userMen u.userMenu _element.c lick | |
161 | expe ct(@cc_po. userMenu.a bout_eleme nt.text).t o eq("Abou t") | |
162 | expe ct(@cc_po. userMenu.h elp_elemen t.text).to eq("Help" ) | |
163 | expe ct(@cc_po. userMenu.l aunchpad_e lement.tex t).to eq(" Launchpad" ) | |
164 | expe ct(@cc_po. userMenu.l ogOut_elem ent.text). to eq("Log out") | |
165 | @cc_ po.userMen u.userMenu _element.c lick | |
166 | end | |
167 | ||
168 | it "Ve rify the e xternal li nk of 'VA Facility L ocator'" d o | |
169 | @cc_ po.landing CC.facilit y_locator_ link | |
170 | expe ct(@cc_po. landingCC. modal_titl e_element. text).to e q("Confirm ation") | |
171 | expe ct(@cc_po. landingCC. modal_cont ent_elemen t.text).to eq("You a re about t o leave th e VA Appoi ntments ap p. Select CONTINUE t o proceed to the lin k informat ion select ed, or sel ect RETURN to return to the VA Appointme nts app.") | |
172 | @cc_ po.landing CC.modal_r eturn_btn | |
173 | end | |
174 | ||
175 | it "Ve rify Landi ng page fo oter" do | |
176 | @cc_ po.landing .footerUse rInfo_elem ent.when_v isible(TIM E_OUT_LIMI T) | |
177 | Wati r::Wait.un til {@cc_p o.landing. footerUser Info == "L ogged in a s nullIden tifier, zz test"} | |
178 | expe ct(@cc_po. landing.fo oterUserIn fo).to eq( "Logged in as nullId entifier, zztest") | |
179 | expe ct(@cc_po. landing.ap pVersion). to eq("VA Appointmen ts - v4.1. 0") | |
180 | end | |
181 | ||
182 | end | |
183 | ||
184 | def comp _text(expe cted_conte nt, actual _content) | |
185 | expect ed_content .each_with _index do |expectedS creenRow, i| | |
186 | expe ct(actual_ content[i] .to_s.stri p).to eq(e xpectedScr eenRow.to_ s.strip) | |
187 | end | |
188 | expect (expected_ content.si ze).to eq( actual_con tent.size) | |
189 | end | |
190 | ||
191 | end | |
192 | ||
193 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.