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 | cc_landing_page_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 | cc_landing_page_spec.rb | Fri Dec 7 13:25:54 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 156 |
| Changed | 1 | 4 |
| 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 | require_re lative '.. /rspec_hel per' | |||||
| 2 | require_re lative '.. /../pages/ community_ care/commu nity_Care_ PageObject ' | |||||
| 3 | require 'r ubygems' | |||||
| 4 | require 'w atir-webdr iver' | |||||
| 5 | require_re lative '.. /../module /DriverUti lity' | |||||
| 6 | ||||||
| 7 | ||||||
| 8 | ||||||
| 9 | describe ' [Story VAR -9231 :Lan ding Page (unauthent icated/log in page) - Add descr iptive inf o regardin g app feat ures; | |||||
| 10 | Story VAR -9473 : Le arn About Community Care - Mod al and Inf o Text (Un authentica ted User); | |||||
| 11 | ]' do | |||||
| 12 | ||||||
| 13 | include DriverUtil ity | |||||
| 14 | ||||||
| 15 | shared_c ontext "Sh ared Test" do | |||||
| 16 | before(: all) do | |||||
| 17 | initia lizeConfig urations(V AR_BASE_UR L) | |||||
| 18 | @cc_po = Communi tyCare_Pag eObject.ne w(@driver) | |||||
| 19 | @cc_po _appointme nts = Land ingAppoint ments.new( @driver) | |||||
| 20 | end | |||||
| 21 | ||||||
| 22 | after(:a ll) do | |||||
| 23 | quitDr iver | |||||
| 24 | end | |||||
| 25 | ||||||
| 26 | end | |||||
| 27 | ||||||
| 28 | context "AC#VAR-94 90|TC#VAR- 9535: Land ing Page ( unauthenti cated/logi n page) - Add descri ptive info regarding app featu res" do | |||||
| 29 | includ e_context "Shared Te st" | |||||
| 30 | ||||||
| 31 | it "ve rify un-au thenticate landing p age info" do | |||||
| 32 | @cc_ po.landing .landing_p age_title_ element.wh en_visible (TIME_OUT_ LIMIT) | |||||
| 33 | expe ct(@cc_po. landing.la nding_page _title_ele ment.text) .to eq("We lcome to V A Appointm ents") | |||||
| 34 | expe ct(@cc_po. landing.te xt).to eq( "The VA Ap pointment app allows patients to:") | |||||
| 35 | actu al_content = @cc_po. landing.ap p_allows_l ist_elemen t.text.spl it("\n") | |||||
| 36 | expe cted_conte nt = [\ | |||||
| 37 | "Sch edule appo intments f or support ed types o f care dir ectly with the VA fa cility.", | |||||
| 38 | "Sub mit reques ts to a sc heduling c lerk for a VA facili ty appoint ment.", | |||||
| 39 | "Sub mit reques ts for non VA appoin tments (Co mmunity Ca re) to a s cheduling clerk (dis tance elig ible veter ans only). " | |||||
| 40 | ] | |||||
| 41 | comp _text(expe cted_conte nt, actual _content) | |||||
| 42 | ||||||
| 43 | end | |||||
| 44 | ||||||
| 45 | it "ve rify the L earn About CC Modal content" d o | |||||
| 46 | @cc_ po.landing CC.learn_c c | |||||
| 47 | @cc_ po.landing CC.learn_c c_text_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT) | |||||
| 48 | p ac tual_conte nt = (@cc_ po.landing CC.learn_c c_text_ele ment.text) .split("\n ") | |||||
| 49 | ||||||
| 50 | expe cted_conte nt = [\ | |||||
| 51 | "Lea rn About C ommunity C are", | |||||
| 52 | "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.", | |||||
| 53 | "", | |||||
| 54 | "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 . DOMAIN . EX /opa/choic eact/", | |||||
| 55 | "To access a current list of a pproved pr oviders, v isit: http s://www. DOMAIN . EX /opa/apps/ locator/in dex.html", | |||||
| 56 | "OK" | |||||
| 57 | ] | |||||
| 58 | comp _text(expe cted_conte nt, actual _content) | |||||
| 59 | end | |||||
| 60 | ||||||
| 61 | it "Ve rify the e xternal li nk on Lear n CC Modal " do | |||||
| 62 | @cc_ po.landing CC.link_ve t_choice | |||||
| 63 | @cc_ po.landing CC.modal_t itle_eleme nt.when_vi sible(TIME _OUT_LIMIT ) | |||||
| 64 | expe ct(@cc_po. landingCC. modal_titl e_element. text).to e q("Confirm ation") | |||||
| 65 | 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.") | |||||
| 66 | slee p(4) | |||||
| 67 | @cc_ po.landing CC.modal_r eturn_btn | |||||
| 68 | end | |||||
| 69 | ||||||
| 70 | ||||||
| 71 | def co mp_text(ex pected_con tent, actu al_content ) | |||||
| 72 | expe cted_conte nt.each_wi th_index d o |expecte dScreenRow , i| | |||||
| 73 | ex pect(actua l_content[ i].to_s.st rip).to eq (expectedS creenRow.t o_s.strip) | |||||
| 74 | end | |||||
| 75 | expe ct(expecte d_content. size).to e q(actual_c ontent.siz e) | |||||
| 76 | end | |||||
| 77 | ||||||
| 78 | end | |||||
| 79 | end | |||||
| 80 | ||||||
| 81 | TT |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.