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

271.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\appointments unsaved_appointment_modal_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\appointments unsaved_appointment_modal_spec.rb Fri Dec 7 13:25:48 2018 UTC

271.2 Comparison summary

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

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

271.4 Active regular expressions

No regular expressions were active.

271.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/ landing_ap pointments '
  16   require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest'
  17   require_re lative '.. /../helper /modal'
  18   require_re lative '.. /../module /database/ OracleUtil ity'
  19   require_re lative '.. /../module /DateUtili ty'
  20   require_re lative '.. /../helper /error_val idation'
  21   require_re lative '.. /../pages/ user_menu'
  22   require_re lative '.. /../module /database/ MongoUtili ty'
  23  
  24   describe ' [Story# VA R-2827: VA R -Confirm  navigatio n away fro m New Appo intment/Re quest form  without s ubmission]
  25              [Story# VA R-10083: R eturn to A ppointment s/Requests ]' do
  26  
  27     include  DriverUtil ity
  28     include  OracleUtil ity
  29     include  DateUtilit y
  30     include  MongoUtili ty
  31  
  32     before(: all) do
  33       initia lizeConfig urations(V AR_BASE_UR L)
  34       @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver)
  35       @login  = Login.n ew(@driver )
  36       @eula  = Eula.new (@driver)
  37       @commo n = Common .new(@driv er)
  38       @new_a ppointment  = NewAppo intmentReq uest.new(@ driver)
  39       @user_ menu = Use rMenuOptio n.new(@dri ver)
  40       @modal  = Modal.n ew(@driver )
  41  
  42       TITLE  = "Appoint ments/Requ ests"
  43         @common.lo ginEndsOnH ome( pw_reda c t e d )
  44       @commo n.selectAd dAppointme ntButton(" VA")
  45       @@cc_e nabled = @ common.ccE nabled
  46     end
  47  
  48     after(:a ll) do
  49       @drive r.close
  50     end
  51  
  52     context  'AC#VAR-64 35|TC#VAR- 6436: Moda l shows up  to prompt  user to s ave the un saved chan ges.
  53            M odal Title : Confirma tion
  54            M odal Body: You have n ot complet ed your ap pointment/ request. I f you wish  to contin ue without  completin g,
  55            s elect CONT INUE, othe rwise sele ct RETURN  to return  to the New  Appointme nts/Reques ts screen.
  56            M odal butto ns: Contin ue and Ret urn
  57            A C#VAR-1013 1|TC#10132 : Return t o Appointm ents/Reque sts' do
  58  
  59       it 'Af ter the us er Selects  the Clini c and trie s to navig ate away f rom the pa ge, Confir mation Mod al shows u p' do
  60         @new _appointme nt.selectN ewAppointm entAndSche dule(PRIMA RY_CARE, " 523", "523 ", "direct ")
  61         @new _appointme nt.selectC linic('32' )
  62         @com mon.waitWh ileSpinner Present
  63         @new _appointme nt.back_bt n
  64         @mod al.modalTi tle_elemen t.when_pre sent(TIME_ OUT_LIMIT)
  65         expe ct(@modal. modalTitle ).to eq("C onfirmatio n")
  66       end
  67  
  68       it "Ve rify the d etails of  confirmati on modal"  do
  69         expe ct(@modal. content).t o eq("You  have not c ompleted y our appoin tment/requ est. If yo u wish to  continue w ithout com pleting, s elect CONT INUE, othe rwise sele ct RETURN  to return  to the New  Appointme nts/Reques ts screen. ")
  70       end
  71  
  72       it "Ve rify the t ext of Con tinue and  Return but tons prese nt on conf irmation m odal" do
  73         expe ct(@modal. buttons_el ements[0]. text).to e q("Continu e")
  74         expe ct(@modal. buttons_el ements[1]. text).to e q("Return" )
  75       end
  76  
  77       it 'Cl icking Ret urn closes  the modal  and retur ns the use r to the d etail scre en with fo cus on the  header. '  do
  78         @mod al.buttons _elements[ 1].click
  79         expe ct(@new_ap pointment. primary_he ader).to e q("New App ointment/R equest")
  80       end
  81  
  82       it 'Cl icking Con tinue clos es the mod al and adv ances the  user to th e navigati on item se lected.' d o
  83         @new _appointme nt.back_bt n
  84         @mod al.modalTi tle_elemen t.when_pre sent(TIME_ OUT_LIMIT)
  85         @mod al.buttons _elements[ 0].click
  86         expe ct(@landin g_appointm ents.prima ry_header) .to eq("Ap pointments /Requests" )
  87       end
  88  
  89       it 'Af ter the us er Selects  the Clini c and trie s to navig ate to pro vide feedb ack, Confi rmation Mo dal shows  up' do
  90         @com mon.select AddAppoint mentButton ("VA")
  91         @new _appointme nt.selectN ewAppointm entAndSche dule(PRIMA RY_CARE, " 523", "523 ", "direct ")
  92         @new _appointme nt.selectC linic('32' )
  93         @com mon.waitWh ileSpinner Present
  94         @use r_menu.cli ckUserMenu
  95         @use r_menu.cli ckFeedback
  96         @com mon.waitWh ileSpinner Present
  97         @mod al.modalTi tle_elemen t.when_pre sent(TIME_ OUT_LIMIT)
  98         if ( @@cc_enabl ed ==true)
  99           ex pect(@moda l.modalTit le).to eq( "Exit Conf irmation")
  100         elsi f(@@cc_ena bled ==fal se)
  101           ex pect(@moda l.modalTit le).to eq( "Confirmat ion")
  102           en d
  103  
  104       end
  105  
  106       it "Ve rify detai ls of Exit  Confirmat ion Modal"  do
  107         if ( @@cc_enabl ed ==true)
  108           ex pect(@moda l.content) .to eq("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?")
  109         elsi f(@@cc_ena bled ==fal se)
  110           ex pect(@moda l.content) .to eq("Yo u have not  completed  your appo intment/re quest. If  you wish t o continue  without c ompleting,  select CO NTINUE, ot herwise se lect RETUR N to retur n to the N ew Appoint ments/Requ ests scree n.")
  111         end
  112       end
  113  
  114       it "ve rify Text  of buttons  present"  do
  115         if ( @@cc_enabl ed ==true)
  116           ex pect(@moda l.buttons_ elements[0 ].text).to  eq("Yes")
  117           ex pect(@moda l.buttons_ elements[1 ].text).to  eq("No")
  118         elsi f(@@cc_ena bled ==fal se)
  119           ex pect(@moda l.buttons_ elements[0 ].text).to  eq("Conti nue")
  120           ex pect(@moda l.buttons_ elements[1 ].text).to  eq("Retur n")
  121         end
  122       end
  123  
  124       it 'Cl icking Ret urn closes  the modal  and retur ns the use r to the N ew Appoint ment Reque st Form' d o
  125         @mod al.buttons _elements[ 1].click
  126         expe ct(@new_ap pointment. primary_he ader).to e q("New App ointment/R equest")
  127       end
  128  
  129       #Ignor ing this T est due to  Open Feed back Defec t VAR-1212 7
  130       xit 'C licking Co ntinue clo ses the mo dal and ad vances the  user to t he Feedbac k Page.' d o
  131         @use r_menu.cli ckUserMenu
  132         @use r_menu.cli ckFeedback
  133         @com mon.waitWh ileSpinner Present
  134         @mod al.modalTi tle_elemen t.when_pre sent(TIME_ OUT_LIMIT)
  135         @mod al.buttons _elements[ 0].click
  136         expe ct(@landin g_appointm ents.prima ry_header) .to eq("Fe edback")
  137       end
  138  
  139     end
  140  
  141   end