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\community_care | cc_not_eligible_for_cc_based_on_eligibility_codes_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\community_care | cc_not_eligible_for_cc_based_on_eligibility_codes_spec.rb | Wed May 29 22:08:03 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 314 |
| 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 | require_re lative '.. /../pages/ appointmen ts/custom_ messages' | |
| 7 | require_re lative '.. /../pages/ landing' | |
| 8 | ||
| 9 | describe ' [Story VAR -15931: CC - Workflo w when Vet eran is No t Eligible for CC ba sed on Eli gibility C odes]' do | |
| 10 | include DriverUtil ity | |
| 11 | include MongoUtili ty | |
| 12 | ||
| 13 | before(: all) do | |
| 14 | init ializeConf igurations (VAR_BASE_ URL) | |
| 15 | @cc_ po = Commu nityCare_P ageObject. new(@drive r) | |
| 16 | @lan ding_appoi ntments = LandingApp ointments. new(@drive r) | |
| 17 | @db =connectTo MongoDB("v ar-utility ") | |
| 18 | @cus tomMessage s = Custom Messages.n ew(@driver ) | |
| 19 | @lan ding = Lan ding.new(@ driver) | |
| 20 | @mod al = Modal .new(@driv er) | |
| 21 | end | |
| 22 | ||
| 23 | after(:a ll)do | |
| 24 | @cc_ po.loginLo gout.logou t | |
| 25 | end | |
| 26 | ||
| 27 | def not_ cc_eligibl e_warning_ message | |
| 28 | actual _content = @cc_po.com munityCare .community _care_inel igibility_ dialog_tex t_element. text.split ("\n") | |
| 29 | expect ed_content =[\ | |
| 30 | "You are curre ntly not e ligible fo r care in the commun ity. If yo u have que stions abo ut your el igibility, please co ntact your local VA Medical Ce nter (VAMC ). Select the VA Fac ility Loca tor to fin d your loc al VAMC.", | |
| 31 | "Oth erwise, se lect 'Requ est VA App ointment' button to request an appointme nt with a VA Medical Facility. ", | |
| 32 | ||
| 33 | ] | |
| 34 | compar eContents( expected_c ontent, ac tual_conte nt) | |
| 35 | end | |
| 36 | ||
| 37 | context "AC#VAR-15 931|TC#VAR -15931: CC - Workflo w when Vet eran is No t Eligible for CC ba sed on Eli gibility C odes" do | |
| 38 | it "Lo gin and na vigate to step 3/4 w izard of C C Request" do | |
| 39 | @cc_ po.common. loginEndsO nHome(Mock User41) | |
| 40 | @cc_ po.common. selectAddA ppointment Button("CC ") | |
| 41 | @cc_ po.common. continueWi thCC_ADRoN _oFF("adrO n") | |
| 42 | end | |
| 43 | ||
| 44 | it "veri fy care ty pe selecti on generat es additio nal questi on" do | |
| 45 | @cc_po .community Care.selec tTypeOfCar e("Optomet ry (routin e eye exam )") | |
| 46 | @cc_po .community Care.care_ type_conti nue_elemen t.when_vis ible(TIME_ OUT_LIMIT) | |
| 47 | actual _content = @cc_po.co mmunityCar e.care_typ e_continue _element.t ext.split( "\n") | |
| 48 | expect ed_content = [\ | |
| 49 | " * Do you w ish to con tinue with your requ est?", | |
| 50 | " Yes", "No" | |
| 51 | ] | |
| 52 | compar eContents( expected_c ontent, ac tual_conte nt) | |
| 53 | expect (@cc_po.co mmunityCar e.con_yes_ element.se lected?).t o eq false | |
| 54 | expect (@cc_po.co mmunityCar e.con_no_e lement.sel ected?).to eq false | |
| 55 | end | |
| 56 | ||
| 57 | it "shou ld verify Continue b utton rema in disable d when No radio but ton is sel ected" do | |
| 58 | @cc_po .community Care.con_n o_element. click | |
| 59 | expect (@cc_po.co mmunityCar e.continue _btn_eleme nt.enabled ?).to eq f alse | |
| 60 | end | |
| 61 | ||
| 62 | it "Shou ld verify the contin ue button is enabled selection of Yes an d clickabl e " do | |
| 63 | @cc_po .community Care.con_y es_element .click | |
| 64 | expect (@cc_po.co mmunityCar e.continue _btn_eleme nt.enabled ?).to eq t rue | |
| 65 | end | |
| 66 | it "Verify not cc el igible war ning messa ge is disp layed" do | |
| 67 | @cc_po.c ommunityCa re.continu e_btn | |
| 68 | not_cc_e ligible_wa rning_mess age | |
| 69 | ||
| 70 | end | |
| 71 | it "Ve rify Previ ous, conti nue, and R equest VA Appointmne t buttons are presen ted" do | |
| 72 | actu al_content = @cc_po. communityC are.form_c ontrol_but tons_modal _content_s ection_ele ment.text. split("\n" ) | |
| 73 | expe cted_conte nt =[\ | |
| 74 | "Previ ous", | |
| 75 | "Conti nue", | |
| 76 | "Reque st VA Appo intment", | |
| 77 | ] | |
| 78 | comp areContent s(expected _content, actual_con tent) | |
| 79 | end | |
| 80 | ||
| 81 | it "Ve rify exit button is presented, enabled a nd clickab le" do | |
| 82 | expe ct(@cc_po. communityC are.exit_b utton_elem ent.text). to eq("Exi t") | |
| 83 | e xpect(@cc_ po.communi tyCare.exi t_button_e lement.ena bled?).to eq true | |
| 84 | @cc_po.com munityCare .exit_butt on | |
| 85 | actual_con tent = @cc _po.modal. exit_modal _element.t ext.split( "\n") | |
| 86 | expected_c ontent = [ \ | |
| 87 | "Ex it Confirm ation", | |
| 88 | "Yo u are abou t to leave New Appoi ntment/Req uest form. Any chang es you hav e made wil l be lost. Do you wa nt to cont inue?", | |
| 89 | "Ye s No" | |
| 90 | ||
| 91 | ] | |
| 92 | c ompareCont ents(expec ted_conten t, actual_ content) | |
| 93 | @ cc_po.moda l.cancel_n o | |
| 94 | n ot_cc_elig ible_warni ng_message | |
| 95 | end | |
| 96 | ||
| 97 | it "Ve rify Conti nue button is presen ted and di sable" do | |
| 98 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.text) .to eq("Co ntinue") | |
| 99 | expe ct(@cc_po. communityC are.contin ue_btn_ele ment.enabl ed?).to eq false | |
| 100 | ||
| 101 | end | |
| 102 | ||
| 103 | it "V erify Prev ious butto n is prese nted, enab led and cl ickable" d o | |
| 104 | ex pect(@cc_p o.communit yCare.prev ious_btn_e lement.tex t).to eq(" Previous") | |
| 105 | ex pect(@cc_p o.communit yCare.prev ious_btn_e lement.ena bled?).to eq true | |
| 106 | @c c_po.commu nityCare.p revious_bt n | |
| 107 | ac tual_conte nt = @cc_p o.communit yCare.care _type_sect ion_elemen t.text.spl it("\n") | |
| 108 | ||
| 109 | ex pected_con tent = [\ | |
| 110 | "St ep 3: Type of Care", | |
| 111 | " * What typ e of care do you nee d?", | |
| 112 | " Select","A udiology ( hearing ai d support) ", "Audiol ogy (routi ne hearing exam)", " Nutrition (routine e xam)", "Op tometry (r outine eye exam)", " Podiatry ( routine ex am)", "Pri mary Care (routine a ppointment )", | |
| 113 | ] | |
| 114 | com pareConten ts(expecte d_content, actual_co ntent) | |
| 115 | end | |
| 116 | ||
| 117 | it "Se lect View VA Facilit y link" do | |
| 118 | @cc_ po.communi tyCare.con tinue_btn | |
| 119 | @lan ding.vaFac ilityLink | |
| 120 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |
| 121 | expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion") | |
| 122 | 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.") | |
| 123 | expe ct(@modal. buttons_el ements[1]. text).to e q("Return" ) | |
| 124 | end | |
| 125 | ||
| 126 | it "cl icking ret urn from V iew VA fac ilities re turns to n on cc elig ible warni ng message page" do | |
| 127 | @mod al.buttons _elements[ 1].click | |
| 128 | not_ cc_eligibl e_warning_ message | |
| 129 | end | |
| 130 | ||
| 131 | it "co ntinue to view VA fa cilities" do | |
| 132 | @lan ding.vaFac ilityLink | |
| 133 | @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT) | |
| 134 | @mod al.buttons _elements[ 0].click | |
| 135 | swit chWindowTo WindowHand leLast | |
| 136 | expect(get CurrentURL ).to eq("h ttps:// DNS . URL /find-loca tions/") | |
| 137 | end | |
| 138 | ||
| 139 | it "Cl ose and re turn back to non cc eligible w arning mes sage page" do | |
| 140 | swit chWindowTo WindowHand leFirst | |
| 141 | not_ cc_eligibl e_warning_ message | |
| 142 | end | |
| 143 | ||
| 144 | xit "V erif reque st_va_appo intment_bu tton is pr esented, e nabled and clickable " do | |
| 145 | @ cc_po.comm unityCare. continue_b tn | |
| 146 | n ot_cc_elig ible_warni ng_message | |
| 147 | e xpect(@cc_ po.communi tyCare.req uest_va_ap pointment_ button_ele ment.text) .to eq("Re quest VA A ppointment ") | |
| 148 | e xpect(@cc_ po.communi tyCare.req uest_va_ap pointment_ button_ele ment.enabl ed?).to eq true | |
| 149 | @ cc_po.comm unityCare. request_va _appointme nt_button | |
| 150 | @ customMess ages.custo m_message_ type_of_ca re_element .wait_unti l_present( TIME_OUT_L IMIT) | |
| 151 | e xpect(@cus tomMessage s.custom_m essage_typ e_of_care_ element.te xt).to eq( "The VA Ap pointments app suppo rts schedu ling speci fic types of care. I f you do n ot find th e care you need, ple ase contac t your fac ility for assistance .") | |
| 152 | @ cc_po.comm unityCare. new_appoin tment_requ est_cancel _button_el ement.wait _until_pre sent(TIME_ OUT_LIMIT) | |
| 153 | @ cc_po.comm unityCare. new_appoin tment_requ est_cancel _button | |
| 154 | en d | |
| 155 | ||
| 156 | end | |
| 157 | ||
| 158 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.