35. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/29/2018 12:14:33 PM 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.

35.1 Files compared

# Location File Last Modified
1 mobile-kidney-web-2.0.0.zip\mobile-kidney-web\acceptance_test\watir\spec\kidney-tracker Weight_Filter_And_List_DCKDA_501_spec.rb Wed Apr 4 20:16:46 2018 UTC
2 mobile-kidney-web-2.0.0.zip\mobile-kidney-web\acceptance_test\watir\spec\kidney-tracker Weight_Filter_And_List_DCKDA_501_spec.rb Tue May 29 15:49:49 2018 UTC

35.2 Comparison summary

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

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

35.4 Active regular expressions

No regular expressions were active.

35.5 Comparison detail

  1   #!/bin/env  ruby
  2   # encoding : utf-8
  3  
  4   require 'r ubygems'
  5   require 'r spec'
  6   require 'w atir-webdr iver'
  7  
  8   require_re lative '.. /rspec_hel per'
  9   require_re lative '.. /../lib/pa ges/left_s ide_nav'
  10   require_re lative '.. /../lib/pa ges/common _elements'
  11   require_re lative '.. /../lib/pa ges/common _tests'
  12   require_re lative '.. /../lib/pa ges/filter s'
  13   require_re lative '.. /../lib/pa ges/error_ validation s'
  14   require_re lative '.. /../lib/pa ges/tracke rs_list_an d_detail'
  15   require_re lative '.. /../lib/mo dule/FHIRO perationsM odule'
  16  
  17   describe ' Story#DCKD A-501 Weig ht_Filter_ And_List_D CKDA_501_s pec.rb', : regression  => true d o
  18     include  DriverOper ationsModu le
  19     include  FHIROperat ionsModule
  20  
  21     before(: all) do
  22       patien tId = "PAT ID12"
  23       firstN ame = "zzt est"
  24       lastNa me = "pati ent13"
  25         userName =  " AI "
  26         password =  " AI "
  27  
  28       entrie s = [
  29         { :v alue => 19 6, :effect iveDateTim e => '2017 -01-16T17: 30:00-05:0 0', :comme nts => 'Th is is a co mment'},
  30         { :v alue => 20 2, :effect iveDateTim e => '2016 -11-25T13: 00:00-04:0 0'},
  31         { :v alue => 20 0, :effect iveDateTim e => '2016 -07-07T00: 00:00-04:0 0'},
  32       ]
  33  
  34       initia lizeConfig urations()
  35       remove WeightEntr ies(patien tId, first Name, last Name)
  36       addWei ghtEntries (entries,  patientId,  firstName , lastName )
  37  
  38       @commo nElements  = CommonEl ement.new( @driver)
  39       @commo nTest = Co mmonTest.n ew(@driver )
  40       @leftn av = LeftS ideNav.new (@driver)
  41       @filte r = Filter s.new(@dri ver)
  42       @error  = Errors. new(@drive r)
  43       @tklis tDetail =  TrackerLis tDetail.ne w(@driver)
  44  
  45       @commo nTest.pass ByLandingP ageAndAuth enticate(u serName, p assword, " #{lastName }, #{first Name}", pa tientId)
  46  
  47       begin
  48         Wati r::Wait.un til
  49         @com monElement s.angulart itle_eleme nt.visible ?
  50       rescue
  51         Wati r::Wait::T imeoutErro r
  52         unti l
  53         @com monElement s.angulart itle_eleme nt.visible ?
  54         end
  55       end
  56  
  57       @commo nTest.wait ForContent LoadedSumm aryPage
  58       @leftn av.leftSid eNav
  59  
  60       @leftn av.home_el ement.when _visible
  61  
  62       @commo nTest.navi gateToAsub Feature("K idneyTrack ers", ".we ight")
  63       @commo nElements. contentLoa ded_elemen t.when_pre sent
  64  
  65       $today Long = get DateNthDay sAgo(0, "% m/%d/%Y")
  66       $yeste rdayShort  = getDateN thDaysAgo( 1, "%m/%d/ %y")
  67       $yeste rdayLong =  getDateNt hDaysAgo(1 , "%m/%d/% Y")
  68       $tomor row = getD ateNthDays FromNow(1,  "%m/%d/%Y ")
  69       $sixYe arsAgo = g etDateNthY earsAgo(6,  "%m/%d/%Y ")
  70       $sixYe ars1dayAgo  = getDate NthDaysAgo (2193, "%m /%d/%Y")
  71       $oneYe arAgo = ge tDateNthYe arsAgo(1,  "%m/%d/%Y" )
  72  
  73     end
  74  
  75     after(:a ll) do
  76       @drive r.close
  77     end
  78  
  79     context  'AC#DCKDA- 600|TC#DCK DA-1193:   Sub Featur e Selectio n' do
  80       it '.  Verify sub  feature L abel displ ays correc tly' do
  81         expe ct(@leftna v.getSubFe atureText( '.weight',  'KidneyTr ackers')). to eq("Wei ght")
  82       end
  83  
  84       it '.  Verify tha t date of  the most r ecent trac ker displa ys correct ly' do
  85         if $ yesterdayS hort == "0 1/16/17"
  86           di splayedDat e = "Yeste rday"
  87         else
  88           di splayedDat e = "01/16 /17"
  89         end
  90  
  91         @tkl istDetail. summaryTab le_element .when_visi ble(timeou t=10)
  92         expe ct(@leftna v.getDispl ayedDateFo rFeature(' .weight')) .to eq(dis playedDate )
  93       end
  94  
  95       it '.  Verify tha t the most  recent va lue displa ys on the  right side  of the na v button'  do
  96         expe ct(@leftna v.getDispl ayedReadin gForFeatur e('.weight ')).to eq( "196 lbs")
  97       end
  98  
  99     end
  100  
  101     context  'AC#DCKDA- 602|TC#DCK DA-1193:   Sub Featur e Default  View (Filt er and Tab le List)'  do
  102       it '.  Verify tha t the deta il screen  has the co rrect head er' do
  103         @com monElement s.primaryH eader_elem ent.when_v isible(tim eout=10)
  104         expe ct(@common Elements.p rimaryHead er).to eq( "Weight")
  105       end
  106  
  107       it '.  Filter def aults to a n expanded  view. Fil ter button  alt text  reads “Col lapse filt er options ” when exp anded.' do
  108         expe ct(@filter .startDate ?).to eq(t rue)
  109         expe ct(@filter .filterAcc dBttn_elem ent.attrib ute('title ')).to eq( "Collapse  filter opt ions")
  110       end
  111  
  112       it '.  Users can  collapse t he filter  list by cl icking on  the Collap se filter  icon. When  collapsed , the filt er icon al t text rea ds “Expand  filter op tions.”' d o
  113         @fil ter.filter AccdBttn
  114         @fil ter.startD ate_elemen t.when_not _visible
  115         expe ct(@filter .filterAcc dBttn_elem ent.attrib ute('title ')).to eq( "Expand fi lter optio ns")
  116       end
  117  
  118       it '.  Date Range  is defaul t to the p ast 12 mon ths' do
  119         @fil ter.filter AccdBttn
  120         @fil ter.startD ate_elemen t.when_vis ible
  121         expe ct(@filter .startDate ).to eq($o neYearAgo)
  122         expe ct(@filter .endDate). to eq($tod ayLong)
  123       end
  124  
  125       it '.  Verify Sta rt Date an d End Date  label and  the requi red field  sympol dis play corre ctly ' do
  126         expe ct(@filter .getRequir edFieldSym polAndText ("startDat e")).to eq ("*Start D ate:")
  127         expe ct(@filter .getRequir edFieldSym polAndText ("endDate" )).to eq(" *End Date: ")
  128       end
  129  
  130       it '.  Verify tha t the MM/D D/YYYY dis plays as t he format  sample' do
  131         expe ct(@filter .startDate _element.a ttribute(' placeholde r')).to eq ("MM/DD/YY YY")
  132         expe ct(@filter .endDate_e lement.att ribute('pl aceholder' )).to eq(" MM/DD/YYYY ")
  133       end
  134  
  135       it '.  Verify tha t the Star t Date Can not be fut ure date,  cannot be  after the  End date;  date canno t be more  than 6 yea rs in the  past' do
  136         @fil ter.startD ate= ""
  137         @fil ter.startD ate= $tomo rrow
  138         slee p 0.5
  139         @fil ter.filter Bttn
  140         @err or.errorHe ader_eleme nt.when_vi sible
  141         errM sg  = "Sta rt Date mu st be betw een " + $s ixYearsAgo  + " and "  + $todayL ong + "."
  142         expe ct(@error. isThisErro rDisplayed (errMsg)). to eq(true )
  143         expe ct(@error. isThisErro rDisplayed ("Start Da te must oc cur before  End Date. ")).to eq( true)
  144  
  145         @fil ter.startD ate= $sixY ears1dayAg o
  146         slee p 0.5
  147         @fil ter.filter Bttn
  148         @err or.errorHe ader_eleme nt.when_vi sible
  149         errM sg = "Star t Date mus t be betwe en " + $si xYearsAgo  + " and "  + $todayLo ng + "."
  150         expe ct(@error. isThisErro rDisplayed (errMsg)). to eq(true )
  151       end
  152  
  153       it '.  Verify tha t the End  Date Canno t be futur e date' do
  154         @fil ter.endDat e= ""
  155         @fil ter.endDat e= $tomorr ow
  156         slee p 0.5
  157         @fil ter.filter Bttn
  158         @err or.errorHe ader_eleme nt.when_vi sible
  159         errM sg  = "End  Date must  be betwee n " + $six YearsAgo +  " and " +  $todayLon g + "."
  160         expe ct(@error. isThisErro rDisplayed (errMsg)). to eq(true )
  161  
  162         @fil ter.startD ate= ""
  163         @fil ter.endDat e= ""
  164         @fil ter.startD ate= $toda yLong
  165         @fil ter.endDat e = $yeste rdayLong
  166         slee p 0.5
  167         @fil ter.filter Bttn
  168         @err or.errorHe ader_eleme nt.when_vi sible
  169         expe ct(@error. isThisErro rDisplayed ("Start Da te must oc cur before  End Date. ")).to eq( true)
  170       end
  171  
  172     end
  173  
  174     context  'AC#DCKDA- 602,655|TC #DCKDA-119 3:  Reset  Filter Fun ctionality ; Filter A ction and  Results Di splay' do
  175       it '.  Verify tha t Reset ch anges the  date range  to defaul t and it f ilters res ults as ex pected. Ve rify colum n headers  display co rrectly' d o
  176         @fil ter.resetB ttn
  177         slee p 0.5
  178         expe ct(@filter .startDate ).to eq($o neYearAgo)
  179         expe ct(@filter .endDate). to eq($tod ayLong)
  180         @fil ter.filter Bttn
  181         @com monElement s.noResult FountMsg_e lement.whe n_not_visi ble(timeou t=10)
  182         expe ct(@common Elements.n oResultFou ntMsg?).to  eq(false)
  183  
  184         @tkl istDetail. summaryTab le_element .when_visi ble(timeou t=10)
  185         expe ct(@tklist Detail.get ListViewTa bleColumnH eader(1)). to eq("Wei ght (lbs)" )
  186         expe ct(@tklist Detail.get ListViewTa bleColumnH eader(2)). to eq("Dat e/Time")
  187         expe ct(@tklist Detail.get ListViewTa bleColumnH eader(3)). to eq("Not e")
  188  
  189       end
  190  
  191       it '.  Verify tha t all prep opulated d ata displa y when use r clicks t he filter  button' do
  192  
  193         list s = [
  194              { :valueSt r => '196,  01/16/201 7 05:30 PM ', :hasNot e => true  },
  195              { :valueSt r => '202,  11/25/201 6 12:00 PM ', :hasNot e => false  },
  196              { :valueSt r => '200,  07/07/201 6 12:00 AM ', :hasNot e => false  }
  197         ]
  198  
  199         list s.each_wit h_index do  |listItem , i|
  200           sl eep 1
  201           ex pect(@tkli stDetail.v erifyValue sDisplayRi ghtInTable View(i+1,  3, listIte m[:valueSt r], listIt em[:hasNot e])).to eq (true)
  202         end
  203  
  204       end
  205     end
  206  
  207     context  'AC#DCKDA- 603 |TC#DC KDA-1193:  Navigation  on Phone  view' do
  208       it '.  Verify tha t < is sho wn on the  list scree n when on  a phone vi ew' do
  209         resi zeWindowTo (320, 480)
  210         slee p 1
  211         expe ct(@common Elements.r eturnToPre vScreen?). to eq(true )
  212         expe ct(@common Elements.r eturnToPre vScreen_el ement.attr ibute('tit le')).to e q("Return  to Kidney  Trackers o ptions")
  213       end
  214  
  215       it '.  Verify cli cking the  < button r eturns to  the Main S creen for  the featur e where th e group op tions for  that featu re are lis ted.' do
  216         @com monElement s.returnTo PrevScreen
  217         @com monElement s.secondar yHeader_el ement.when _visible(t imeout=10)
  218         expe ct(@common Elements.s econdaryHe ader).to e q("Kidney  Trackers")
  219  
  220         resi zeWindowTo Default()
  221       end
  222  
  223     end
  224  
  225     context  'AC#DCKDA- 602|TC#DCK DA-1193: N o Results  found mess age' do
  226       it '.  Verify if  no records  are found  when a fi lter is ap plied the  message th e followin g message  is shown i n the scre en area in  place of  the table  view.' do
  227         @lef tnav.weigh t
  228         @com monElement s.primaryH eader_elem ent.when_v isible
  229         @fil ter.startD ate= $oneY earAgo
  230         @fil ter.endDat e= $oneYea rAgo
  231         slee p 1
  232         @fil ter.filter Bttn
  233         @com monElement s.noResult FountMsg_e lement.whe n_visible
  234         expe ct(@common Elements.n oResultFou ntMsg).to  eq("No res ults were  found with  the curre nt filters . Use the  Add button  above to  create a n ew record. ")
  235       end
  236     end
  237  
  238   end