288. EPMO Open Source Coordination Office Redaction File Detail Report

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.

288.1 Files compared

# 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_notifications_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_notifications_spec.rb Fri Dec 7 13:25:58 2018 UTC

288.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 9 608
Changed 8 16
Inserted 0 0
Removed 0 0

288.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

288.4 Active regular expressions

No regular expressions were active.

288.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   require 'o ci8'
  8  
  9   require_re lative '.. /../module /DriverUti lity'
  10   require_re lative '.. /rspec_hel per'
  11   require_re lative '.. /../pages/ landing'
  12   require_re lative '.. /../pages/ login'
  13   require_re lative '.. /../pages/ eula'
  14   require_re lative '.. /../common /common'
  15   require_re lative '.. /../pages/ app_option s_menu'
  16   require_re lative '.. /../pages/ landing_ap pointments '
  17   require_re lative '.. /../module /database/ OracleUtil ity'
  18   require_re lative '.. /../module /DateUtili ty'
  19   require_re lative '.. /../pages/ landing_no tification s'
  20   require_re lative '.. /../pages/ notificati ons'
  21   require_re lative '.. /../module /database/ MongoUtili ty'
  22   require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest'
  23  
  24   describe ' [Story# VA R-5705: La nding Page - Notifica tions butt on]
  25              [Story# VA R-5706: No tification s- In App:  List ]
  26              [Story# VA R-5708: No tification  List- Lin k to detai l view]
  27              [Story# VA R-5709: No tification  Details –  Follow Up  Appointme nt Reminde r]
  28              [Story# VA R-6428: No tification s - In App  List (upd ate column s)]
  29              [Story# VA R-5710: De lete Notif ication]
  30              [Story# VA R-5707: No tification s – Icon w ith unread  notificat ion count]  do
  31              [Story# VA R-5711: Re ad/Unread  Status Ind icator]
  32              [Story# VA R-7010: No tification  Details:  Date Sent  field - fo rmatting]'  do
  33  
  34     include  DriverUtil ity
  35     include  OracleUtil ity
  36     include  DateUtilit y
  37     include  MongoUtili ty
  38  
  39     before(: all) do
  40       initia lizeConfig urations(V AR_BASE_UR L)
  41       @eula  = Eula.new (@driver)
  42       @login  = Login.n ew(@driver )
  43       @commo n = Common .new(@driv er)
  44       @landi ng_notific ations = L andingNoti fications. new(@drive r)
  45       @user_ menu = Use rMenuOptio n.new(@dri ver)
  46       @new_a ppointment  = NewAppo intmentReq uest.new(@ driver)
  47  
  48       @db =  connectToM ongoDBVMM( "vmm")
  49       restor eCollectio n("inAppMe ssages","v mm","inApp Messages-v mm.json",@ db)
  50         @common.lo ginEndsOnH ome( pw_reda c t e d )
  51       @commo n.waitWhil eSpinnerPr esent
  52     end
  53  
  54     after(:a ll) do
  55       @drive r.close
  56     end
  57  
  58     context  '[Story# V AR-5705 AC #6142 TC#6 143: Landi ng Page- B utton labe led "Notif cations"/  Back butto n "Appoint ments/Requ ests"]'do
  59       it "sh ould see a nd be able  to click  the Notifi cations bu tton on th e landing  page" do
  60  
  61         expe ct(@landin g_notifica tions.noti fications_ btn_elemen t.when_pre sent(TIME_ OUT_LIMIT) .text).to  include("N otificatio ns")
  62       end
  63  
  64       it "sh ould verif y a Notifi cations pa ge with he ader title  Notificat ions" do
  65         @com mon.waitWh ileSpinner Present
  66         @lan ding_notif ications.a ppointment s_heading_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  67         @lan ding_notif ications.c lickNotifi cationsBut ton
  68         @com mon.waitWh ileSpinner Present
  69         @com mon.wait_u ntil_eleme nts_size_s teadied(TI ME_OUT_LIM IT)
  70         @lan ding_notif ications.h eader_titl e_element. wait_until _present(T IME_OUT_LI MIT)
  71         expe ct(@landin g_notifica tions.head er_title_e lement.whe n_present( TIME_OUT_L IMIT).text ).to eq("N otificatio ns")
  72  
  73  
  74       end
  75  
  76       it "it  sholuld v erify a ba ck button  with title  Appointme nts/Reques ts to navi gate back  to the lan ding page"  do
  77         expe ct(@landin g_notifica tions.appo intment_bt n_element. text).to e q("Appoint ments/Requ ests")
  78       end
  79  
  80     end
  81  
  82     context  '[Story# V AR-5706 AC #5614  TC# 5615: Noti fications  list]' do
  83       it "sh ould show  all notifi cations in  list- Lab el: Notifi cations/ S ubject: VA  Appointme nts - Foll ow-up Appo intment Re minder " d o
  84         expe ct(@landin g_notifica tions.noti fications_ header_ele ment.text) .to eq("No tification ")
  85         expe ct(@landin g_notifica tions.noti fications_ subject_el ement.text ).to eq("V A Appointm ents - Fol low-up App ointment R eminder")
  86       end
  87  
  88       it "sh ould show  message Yo u do not h ave any no tification s at this  time. when  no notifi cations ar e present"  do
  89         rest oreCollect ion("inApp Messages", "vmm","noI nAppMessag es-vmm.jso n",@db)
  90           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  91         @lan ding_notif ications.n otificatio ns_btn_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  92         @lan ding_notif ications.a ppointment s_heading_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  93         @lan ding_notif ications.c lickNotifi cationsBut ton
  94         @lan ding_notif ications.n o_notifica tions_elem ent.wait_u ntil_prese nt(TIME_OU T_LIMIT)
  95         expe ct(@landin g_notifica tions.no_n otificatio ns_element .text).to  eq("You do  not have  any notifi cations at  this time .")
  96       end
  97  
  98     end
  99  
  100     context  '[Story# V AR-5708 AC #6852  TC# 6853: Noti fication l ist: Link  to detail  view]' do
  101       it "sh ould show  notificati on page wi th panel h eader View  Notificat ion" do
  102         rest oreCollect ion("inApp Messages", "vmm","inA ppMessages -vmm.json" ,@db)
  103           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  104         @lan ding_notif ications.n otificatio ns_btn_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  105         @lan ding_notif ications.a ppointment s_heading_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  106         @lan ding_notif ications.c lickNotifi cationsBut ton
  107         @lan ding_notif ications.n otificatio n_element. wait_until _present(T IME_OUT_LI MIT)
  108         @lan ding_notif ications.n otificatio ns_list_el ements[0]. click
  109         @com mon.waitWh ileSpinner Present
  110         @lan ding_notif ications.p anel_heade r_noti_pag e_element. wait_until _present(T IME_OUT_LI MIT)
  111         expe ct(@landin g_notifica tions.pane l_header_n oti_page_e lement.tex t).to eq(" View Notif ication")
  112       end
  113  
  114       it "sh oud return  to notifi ations lis t when Ret urn to Not ifications  List butt on is clic ked" do
  115         @com mon.waitWh ileSpinner Present
  116         @lan ding_notif ications.c lickReturn ToNotifica tionList
  117         @com mon.waitWh ileSpinner Present
  118         @lan ding_notif ications.h eader_titl e_element. wait_until _present(T IME_OUT_LI MIT)
  119         expe ct(@landin g_notifica tions.head er_title_e lement.whe n_present( TIME_OUT_L IMIT).text ).to eq("N otificatio ns")
  120       end
  121  
  122       it "sh ould retur n to Appoi ntment/Req uests page  when Appo intment/Re quest navi gation is  selected o n the noti fications  detail pag e" do
  123         @lan ding_notif ications.n otificatio n_element. wait_until _present(T IME_OUT_LI MIT)
  124         @lan ding_notif ications.n otificatio ns_list_el ements[0]. click
  125         @com mon.waitWh ileSpinner Present
  126         @lan ding_notif ications.a ppointment _btn_eleme nt.wait_un til_presen t(TIME_OUT _LIMIT)
  127         @lan ding_notif ications.c lickBackBu tton
  128         @com mon.waitWh ileSpinner Present
  129         @lan ding_notif ications.a ppt_page_t itle_eleme nt.wait_un til_presen t(TIME_OUT _LIMIT)
  130         expe ct(@landin g_notifica tions.noti fications_ btn_elemen t.when_pre sent(TIME_ OUT_LIMIT) .text).to  include("N otificatio ns")
  131       end
  132  
  133     end
  134  
  135  
  136     context  '[Story# V AR-5709 AC #VAR-6821  TC#VAR-682 2: Notific ationa det ails]' do
  137       it 'sh ould show  notificati ons detail  content f or a follo w up appoi ntment rem inder as f ollows
  138       VA App ointments  (source of  the notif ications)
  139       Date/t ime the no tification  was sent  (format: M M/DD/YYYY  HHMM 24 ho ur clock)
  140       Time z one (e.g.  America/Ne w York for mat)
  141       Horizo ntal Rule
  142       Conten t:
  143       It is  time to sc hedule a F ollow-Up A ppointment  at <Clini c name>
  144       Your p rovider ha s requeste d that you  schedule  a follow u p appointm ent around  04/14/201 7. Please  contact th e facility  below to  make an ap pointment:
  145       <Facil ity Name>
  146       <Clini c Name>
  147       <Clini c friendly  location  name> (dis play if va lued)
  148       <Provi der First  Name> <Pro vider Last  Name> (di splay if v alued)
  149       View V A Faciliti es (hyperl ink label  to facilit y locator  page:<To b e determin ed - if no t availabl e, remove  link>
  150       Your V A Healthca re Team
  151       A butt on labeled  "<add ico n> New App ointment/R equest" is  shown in  the upper  right corn er of the  notificati on box.' d o
  152         rest oreCollect ion("inApp Messages", "vmm","inA ppMessages -vmm.json" ,@db)
  153           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  154         @lan ding_notif ications.n otificatio ns_btn_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  155         @lan ding_notif ications.a ppointment s_heading_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  156         @lan ding_notif ications.c lickNotifi cationsBut ton
  157         @com mon.waitWh ileSpinner Present
  158         @lan ding_notif ications.n otificatio n_element. wait_until _present(T IME_OUT_LI MIT)
  159         @lan ding_notif ications.n otificatio ns_list_el ements[0]. click
  160         @com mon.waitWh ileSpinner Present
  161         expe ct(@landin g_notifica tions.noti fication_d etail_foll ow_up_appt _element.t ext).to eq ("VA Appoi ntments -  Follow-up  Appointmen t Reminder \nDate Sen t:\n06/15/ 2017 @ 150 0\nTimezon e Unavaila ble\na ful l end-to-e nd-test Vi ew Facilit ies")
  162       end
  163  
  164       it 'sh ow the fol lowing bel ow the not ifications  details c ontent
  165       The Re turn to No tification  list butt on is disp layed belo w the noti fication i nformation ' do
  166         expe ct(@landin g_notifica tions.noti fication_d etails_act ion_elemen t.text).to  eq("Retur n to Notif ication Li st Delete" )
  167       end
  168  
  169       it "Se lecting th e button o pens the N ew Appoint ment/Reque st form" d o
  170         @lan ding_notif ications.n otificatio n_detail_n ew_appt_el ement.wait _until_pre sent(TIME_ OUT_LIMIT)
  171         @lan ding_notif ications.n otificatio n_detail_n ew_appt
  172         @com mon.waitWh ileSpinner Present
  173         @lan ding_notif ications.a ppt_page_t itle_eleme nt.wait_un til_presen t(TIME_OUT _LIMIT)
  174         expe ct(@landin g_notifica tions.appt _page_titl e_element. text).to e q("New App ointment/R equest")
  175       end
  176  
  177     end
  178  
  179     context  '[Story# V AR-6428 AC #6854 TC#6 855: Notif ications-  In App Lis t (Update  Columns)]'  do
  180       it 'sh ould show  Notificati on and Sou rce column s: status'  do
  181         rest oreCollect ion("inApp Messages", "vmm","inA ppMessages -vmm.json" ,@db)
  182           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  183         @lan ding_notif ications.n otificatio ns_btn_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  184         @lan ding_notif ications.a ppointment s_heading_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  185         @lan ding_notif ications.c lickNotifi cationsBut ton
  186         @com mon.waitWh ileSpinner Present
  187         @lan ding_notif ications.s tatus_col_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  188         expe ct(@landin g_notifica tions.stat us_col_ele ment.text) .to eq("St atus")
  189       end
  190  
  191       it 'sh ould show  Notificati on and Sou rce column s: Notific ation' do
  192         @lan ding_notif ications.n otificatio n_col_elem ent.wait_u ntil_prese nt(TIME_OU T_LIMIT)
  193         expe ct(@landin g_notifica tions.noti fication_c ol_element .text).to  eq("Notifi cation")
  194       end
  195  
  196       it 'sh ould show  Notificati on and Sou rce column s: source'  do
  197         @lan ding_notif ications.s ource_col_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  198         expe ct(@landin g_notifica tions.sour ce_col_ele ment.text) .to eq("So urce")
  199       end
  200  
  201       it 'sh ould show  Notificati on column  with the t itle' do
  202         @lan ding_notif ications.n otificatio n_col_titl e_element. wait_until _present(T IME_OUT_LI MIT)
  203         expe ct(@landin g_notifica tions.noti fication_c ol_title_e lement.tex t).to eq(" This is a  title")
  204       end
  205  
  206       it 'sh ould show  Source col umn with t he source  field' do
  207         @lan ding_notif ications.s ource_col_ title_elem ent.wait_u ntil_prese nt(TIME_OU T_LIMIT)
  208         expe ct(@landin g_notifica tions.sour ce_col_tit le_element .text).to  eq("VA App ointments  - Follow-u p Appointm ent Remind er")
  209       end
  210     end
  211  
  212     context  '[Story# V AR-5710 AC # TC#: Del ete Notifi cation]' d o
  213       it 'sh ould show  a confirma tion modal  when the  delete but ton is sel ected' do
  214         @lan ding_notif ications.n otificatio n_element. wait_until _present(T IME_OUT_LI MIT)
  215         @lan ding_notif ications.n otificatio ns_list_el ements[0]. click
  216         @com mon.waitWh ileSpinner Present
  217         @lan ding_notif ications.r eturn_to_n ote_list_b tn_element .wait_unti l_present( TIME_OUT_L IMIT)
  218         @lan ding_notif ications.d elete_btn_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  219         #@la nding_noti fications. delete_btn
  220  
  221         # @d etail.back _btn
  222         butt on_element  = @driver .button(:i d => 'dele te-btn')
  223         @dri ver.execut e_script(" $(argument s[0]).clic k();",butt on_element )
  224         @com mon.waitWh ileSpinner Present
  225         @lan ding_notif ications.d elete_moda l_body_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  226         expe ct(@landin g_notifica tions.dele te_modal_b ody_elemen t.text).to  eq("You a re deletin g this not ification  from your  list. Do y ou want to  continue? ")
  227  
  228       end
  229  
  230       it 'sh ould show  Yes and No  buttons f or the con firmation  modal. No  takes back  to notifi cation det ails' do
  231  
  232         @lan ding_notif ications.d elete_moda l_no_btn
  233         expe ct(@landin g_notifica tions.head er_title_e lement.tex t).to eq(" View Notif ication")
  234       end
  235  
  236       it 'sh ould show  Yes and No  buttons f or the con firmation  modal. Yes  returns t he user ba ck to noti fications  page' do
  237         @lan ding_notif ications.d elete_btn
  238         @lan ding_notif ications.d elete_moda l_body_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  239         @lan ding_notif ications.d elete_moda l_yes_btn
  240         @lan ding_notif ications.p anel_heade r_noti_pag e_element. wait_until _present(T IME_OUT_LI MIT)
  241         expe ct(@landin g_notifica tions.pane l_header_n oti_page_e lement.tex t).to incl ude("Notif ication")
  242       end
  243  
  244     end
  245  
  246     context  'Story# VA R-5711 AC# 7016 TC#70 17: Read/U nread Stat us Indicat or' do
  247       it 'sh ould show  a closed e nvelope to  indicate  unread sta tus for th e notifica tion' do
  248         rest oreCollect ion("inApp Messages", "vmm","inA ppMessages -vmm.json" ,@db)
  249           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  250         @lan ding_notif ications.n otificatio ns_btn_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  251         @lan ding_notif ications.a ppointment s_heading_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  252         @lan ding_notif ications.c lickNotifi cationsBut ton
  253         @lan ding_notif ications.r ead_unread _indicator _element.w ait_until_ present(TI ME_OUT_LIM IT)
  254         expe ct(@landin g_notifica tions.read _unread_in dicator_el ement.visi ble?).to e q(true)
  255       end
  256  
  257       it 'sh ould show  no envelop e to indic ate read s tatus for  the notifi cation' do
  258         @lan ding_notif ications.n otificatio ns_list_el ements[0]. click
  259         @com mon.waitWh ileSpinner Present
  260         @lan ding_notif ications.r eturn_to_n ote_list_b tn_element .wait_unti l_present( TIME_OUT_L IMIT)
  261         @lan ding_notif ications.c lickReturn ToNotifica tionList
  262         expe ct(@landin g_notifica tions.read _unread_in dicator_el ement.visi ble?).to e q(false)
  263       end
  264  
  265     end
  266  
  267     context  'Story# VA R-5707 AC# 7196 TC#71 97' do
  268       it 'sh ould show  6 notifica tions on t he notific ations but tons' do
  269         rest oreCollect ion("inApp Messages", "vmm","inA ppMessages -vmm.json" ,@db)
  270           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  271         @lan ding_notif ications.n otificatio ns_counter _element.w ait_until_ present(TI ME_OUT_LIM IT)
  272         expe ct(@landin g_notifica tions.noti fications_ counter_el ement.text ).to eq("6 ")
  273       end
  274  
  275       it 'sh ould show  5 notifica tions afte r one of t he notific ations is  read' do
  276         @lan ding_notif ications.n otificatio ns_btn_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  277         @lan ding_notif ications.c lickNotifi cationsBut ton
  278         @lan ding_notif ications.n otificatio n_element. wait_until _present(T IME_OUT_LI MIT)
  279         @lan ding_notif ications.n otificatio ns_list_el ements[0]. click
  280         @com mon.waitWh ileSpinner Present
  281         @lan ding_notif ications.r eturn_to_n ote_list_b tn_element .wait_unti l_present( TIME_OUT_L IMIT)
  282         @lan ding_notif ications.c lickReturn ToNotifica tionList
  283         @lan ding_notif ications.c lickBackBu tton
  284         @com mon.waitWh ileSpinner Present
  285         @lan ding_notif ications.n otificatio ns_counter _element.w ait_until_ present(TI ME_OUT_LIM IT)
  286         expe ct(@landin g_notifica tions.noti fications_ counter_el ement.text ).to eq("5 ")
  287       end
  288  
  289     end
  290  
  291     context  'Story# VA R-7010 AC# 7260 TC#72 61: Notifi cation Det ails: Date  Sent fiel d - format ting' do
  292       it 'sh ould show  a Date Sen t field an d have @ b efore the  time' do
  293         rest oreCollect ion("inApp Messages", "vmm","inA ppMessages -vmm.json" ,@db)
  294           @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d )
  295         @lan ding_notif ications.n otificatio ns_btn_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT)
  296         @lan ding_notif ications.a ppointment s_heading_ element.wa it_until_p resent(TIM E_OUT_LIMI T)
  297         @lan ding_notif ications.c lickNotifi cationsBut ton
  298         @lan ding_notif ications.n otificatio n_element. wait_until _present(T IME_OUT_LI MIT)
  299         @lan ding_notif ications.n otificatio ns_list_el ements[0]. click
  300         @com mon.waitWh ileSpinner Present
  301         expe ct(@landin g_notifica tions.noti fication_d etail_foll ow_up_appt _element.t ext).to eq ("VA Appoi ntments -  Follow-up  Appointmen t Reminder \nDate Sen t:\n06/15/ 2017 @ 150 0\nTimezon e Unavaila ble\na ful l end-to-e nd-test Vi ew Facilit ies")
  302       end
  303  
  304       it 'sh ould show  Step 1 Typ e of Care  Selection  Page when  NEw Appoin tment is c licked' do
  305         @lan ding_notif ications.n otificatio n_detail_n ew_appt_el ement.wait _until_pre sent(TIME_ OUT_LIMIT)
  306         @com mon.select AddAppoint mentButton ("VA")
  307         @lan ding_notif ications.a ppt_page_t itle_eleme nt.wait_un til_presen t(TIME_OUT _LIMIT)
  308         expe ct(@new_ap pointment. step_1_typ e_of_care_ element.te xt).to eq  "Step 1: T ype of Car e"
  309       end
  310  
  311     end
  312   end