2687. EPMO Open Source Coordination Office Redaction File Detail Report

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.

2687.1 Files compared

# 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\landing landing_page_Not_Authenticated_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\landing landing_page_Not_Authenticated_spec.rb Thu May 3 13:47:22 2018 UTC

2687.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 542
Changed 1 2
Inserted 0 0
Removed 0 0

2687.3 Comparison options

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

2687.4 Active regular expressions

No regular expressions were active.

2687.5 Comparison detail

  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-4564: Au tomate Ver sion Numbe r Update 4 .0.0]' do
  24  
  25     include  DriverUtil ity
  26  
  27     before(: all) do
  28       initia lizeConfig urations(B ASE_URL)
  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 "Ap p header b ar: VA App ointments"  do
  61         #exp ect(@landi ng.has_exp ected_titl e?).to eq( true)
  62         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  63         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  64         expe ct(@landin g.text).to  eq("The V A Appointm ent Schedu ling app a llows pati ents to en ter a requ est for an  appointme nt and sch edule sele ct appoint ments.")
  65         #@la nding.info Line1_elem ent.when_v isible(TIM E_OUT_LIMI T)
  66         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.")
  67  
  68         #Sel ect Dial 9 11 and ver ify the co nfirmation  modal
  69         @lan ding.dial9 11
  70         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  71         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  72         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. ")
  73         @lan ding.retur n
  74  
  75         #Con firmation  Continue
  76         expe ct(@landin g.has_expe cted_title ?).to eq(t rue)
  77         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  78         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  79         @lan ding.dial9 11
  80         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  81         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  82         @lan ding.conti nue
  83  
  84         #Dia l 911 call  window
  85         swit chWindowTo WindowHand leLast
  86         expe ct(getCurr entURL).to  eq("about :blank")
  87         swit chWindowTo WindowHand leFirst
  88         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  89         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  90  
  91       end
  92  
  93       it "Di al Veteran  Crisis Ph one number  link" do
  94         @lan ding.dialV eteranCris isLink
  95         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  96         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  97         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. ")
  98         @lan ding.retur n
  99  
  100         #Con firmation  Continue
  101         expe ct(@landin g.has_expe cted_title ?).to eq(t rue)
  102         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  103         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  104         @lan ding.dialV eteranCris isLink
  105         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  106         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  107         @lan ding.conti nue
  108  
  109         #Dia l Veteran  Crisis cal l window
  110         swit chWindowTo WindowHand leLast
  111         expe ct(getCurr entURL).to  eq("about :blank")
  112         swit chWindowTo WindowHand leFirst
  113         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  114         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  115       end
  116  
  117       it "Se lect Dial  911 Phone  Image" do
  118  
  119         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")
  120         @lan ding.dial9 11Image_li nk
  121         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  122         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  123         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. ")
  124         @lan ding.retur n
  125  
  126         #Con firmation  Continue
  127         expe ct(@landin g.has_expe cted_title ?).to eq(t rue)
  128         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  129         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  130         @lan ding.dial9 11Image_li nk
  131         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  132         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  133         @lan ding.conti nue
  134  
  135         #Dia l 911 call  window
  136         swit chWindowTo WindowHand leLast
  137         expe ct(getCurr entURL).to  eq("about :blank")
  138         swit chWindowTo WindowHand leFirst
  139         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  140         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  141       end
  142  
  143       it "Se lect Veter an Crisis  Phone Imag e" do
  144         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")
  145         @lan ding.dialV eteranCris isImage_li nk
  146         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  147         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  148         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. ")
  149         @lan ding.retur n
  150  
  151         #Con firmation  Continue
  152         expe ct(@landin g.has_expe cted_title ?).to eq(t rue)
  153         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  154         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  155         @lan ding.dialV eteranCris isImage_li nk
  156         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  157         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  158         @lan ding.conti nue
  159  
  160         #Dia l Veteran  Crisis cal l window
  161         swit chWindowTo WindowHand leLast
  162         expe ct(getCurr entURL).to  eq("about :blank")
  163         swit chWindowTo WindowHand leFirst
  164         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  165         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  166       end
  167  
  168       it "Se lect View  VA Facilit y link" do
  169         @lan ding.vaFac ilityLink
  170         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  171         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  172         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.")
  173         expe ct(@modal. buttons_el ements[1]. text).to e q("Return" )
  174         @mod al.buttons _elements[ 1].click
  175  
  176         #Con firmation  Continue
  177         expe ct(@landin g.has_expe cted_title ?).to eq(t rue)
  178         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  179         expe ct(@landin g.landing_ page_title _element.t ext).to eq ("Welcome  to VA Appo intments")
  180         @lan ding.vaFac ilityLink
  181         @lan ding.confi rmModalTit le_element .when_visi ble(TIME_O UT_LIMIT)
  182         expe ct(@landin g.confirmM odalTitle_ element.te xt).to eq( "Confirmat ion")
  183         expe ct(@modal. buttons_el ements[0]. text).to e q("Continu e")
  184         @mod al.buttons _elements[ 0].click
  185  
  186         #Vis iting exte rnal site
  187         swit chWindowTo WindowHand leLast
  188           expect(get CurrentURL ).to eq("h ttps://www . DNS     /directory /guide/div ision.asp? dnum=1")
  189         swit chWindowTo WindowHand leFirst
  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 "Lo gin Button  and Login  Screen" d o
  195         @lan ding.login _element.w hen_visibl e(TIME_OUT _LIMIT)
  196         expe ct(@landin g.has_expe cted_title ?).to eq(t rue)
  197         expe ct(@landin g.login_el ement.visi ble?).to e q(true)
  198  
  199         expe ct(@landin g.appVersi on).to eq( "VA Appoin tments - v 4.0.0")
  200         expe ct(@landin g.footerUs erInfo).to  eq("Not l ogged in")
  201  
  202         @lan ding.login
  203         @log in.login_e lement.whe n_visible( TIME_OUT_L IMIT)
  204  
  205         expe ct(@login. has_expect ed_title?) .to eq(tru e)
  206         @log in.login_w ithout_pas sing_ROA(" zztest.pat ient01", " pass", "D1 23401")
  207       end
  208  
  209       it "RO A not acce pted.  Acc ept ROA" d o
  210         @roa .title_ele ment.when_ present
  211         !(45 ).times{ b reak if (@ roa.title  == "Right  Of Access" ); sleep 1  }
  212  
  213         @roa .nextButto n_element. when_visib le(TIME_OU T_LIMIT)
  214         expe ct(@roa.ha s_expected _title?).t o eq(true)
  215         @roa .nextButto n
  216  
  217         @roa .verify_el ement.when _visible(T IME_OUT_LI MIT)
  218         @roa .verify
  219       end
  220  
  221       it "La nding page " do
  222         @com mon.waitWh ileSpinner Present
  223         @lan ding.foote rUserInfo_ element.wh en_visible (TIME_OUT_ LIMIT)
  224         Wati r::Wait.un til {@land ing.footer UserInfo = = "Logged  in as pati ent01, zzt est"}
  225         expe ct(@landin g.footerUs erInfo).to  eq("Logge d in as pa tient01, z ztest")
  226         @com mon.waitWh ileSpinner Present
  227         @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT)
  228         expe ct(@landin g_appointm ents.prima ry_header) .to eq("Ap pointments /Requests" )
  229         expe ct(@landin g_appointm ents.reque st_header) .to eq("Re quests")
  230  
  231       end
  232  
  233       it "Lo gout and L og in agai n and veri fy ROA scr een does n ot display " do
  234         @use r_menu.use rMenu_elem ent.when_p resent(TIM E_OUT_LIMI T)
  235         @use r_menu.use rMenu
  236         @use r_menu.log Out
  237  
  238         @lau nchpad.log in_element .when_visi ble(TIME_O UT_LIMIT)
  239  
  240         goTo (BASE_URL)
  241         @lan ding.landi ng_page_ti tle_elemen t.when_vis ible(TIME_ OUT_LIMIT)
  242         expe ct(@landin g.has_expe cted_title ?).to eq(t rue)
  243  
  244         @lan ding.login _element.w hen_visibl e(TIME_OUT _LIMIT)
  245         @lan ding.login
  246  
  247         @log in.login_e lement.whe n_visible( TIME_OUT_L IMIT)
  248         expe ct(@login. has_expect ed_title?) .to eq(tru e)
  249         @log in.login_w ith("zztes t.patient0 1", "pass" , "D123401 ")
  250  
  251         @com mon.waitWh ileSpinner Present
  252  
  253         @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT)
  254  
  255         @com mon.waitWh ileSpinner Present
  256  
  257         Wati r::Wait.un til { @lan ding_appoi ntments.ad d_top_btn_ element.pr esent? }
  258         @lan ding_appoi ntments.ad d_top_btn_ element.wh en_present (TIME_OUT_ LIMIT)
  259  
  260  
  261         @lan ding.foote rUserInfo_ element.wh en_present (TIME_OUT_ LIMIT)
  262         Wati r::Wait.un til {@land ing.footer UserInfo = = "Logged  in as pati ent01, zzt est"}
  263         expe ct(@landin g.footerUs erInfo).to  eq("Logge d in as pa tient01, z ztest")
  264       end
  265  
  266     end
  267   end
  268  
  269  
  270  
  271  
  272