215. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/7/2018 11:36:02 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.

215.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\app\modules\community-care-request\new-appointment-request-question\preferred-provider\preferences preferred-provider-section-view_spec.js 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\app\modules\community-care-request\new-appointment-request-question\preferred-provider\preferences preferred-provider-section-view_spec.js Fri Dec 7 13:07:18 2018 UTC

215.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 4 274
Changed 3 10
Inserted 0 0
Removed 0 0

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

215.4 Active regular expressions

No regular expressions were active.

215.5 Comparison detail

  1   define([
  2       'backb one',
  3       'Layou t',
  4       'modul es/communi ty-care-re quest/new- appointmen t-request- question/p referred-p rovider/pr eferences/ preferred- provider-s ection-vie w', // esl int-disabl e-line max -len
  5   ], functio n(
  6       Backbo ne,
  7       Layout ,
  8       Primar yCareSecti onView
  9   ) {
  10       'use s trict';
  11  
  12       descri be('Prefer red Provid er Section ', functio n() {
  13           va r view;
  14           va r model;
  15           va r collecti on;
  16           va r $view;
  17           va r layout;
  18  
  19           be foreEach(f unction()  {
  20                layout =  new Layou t();
  21                layout.r ender();
  22                spyOn(Pr imaryCareS ectionView .prototype , 'getOffi ceHoursNee ded').and. callThroug h();
  23  
  24                model =  new Backbo ne.Model({ steps: [5] , officeHo urs: []});
  25  
  26                view = n ew Primary CareSectio nView({
  27                    mode l: model,
  28                });
  29                layout.s howChildVi ew('conten t', view);
  30                $view =  view.$el;
  31           }) ;
  32  
  33  
  34           af terEach(fu nction ()  {
  35                layout.g etRegion(' content'). empty();
  36           }) ;
  37  
  38           it ('shows a  primary ca re form wi th options ', functio n() {
  39                expect(v iew.collec tion.get(' primaryCit y').get('t ype')).toE qual('text ');
  40                expect(v iew.collec tion.get(' primarySta te').get(' type')).to Equal('sel ect');
  41                expect(v iew.collec tion.get(' primaryZip Code').get ('type')). toEqual('t ext');
  42                expect(v iew.collec tion.get(' primaryPre ferredMile s').get('t ype')).toE qual('radi o');
  43                expect(v iew.collec tion.get(' preferredL anguageSpo ken').get( 'type')).t oEqual('se lect');
  44                expect(v iew.collec tion.get(' officeHour s').get('t ype')).toE qual('chec kbox');
  45           }) ;
  46  
  47  
  48           it ('has the  heading Pr ovider Pre ference',  function()  {
  49                expect($ view.find( 'legend:eq (0)').text ()).toEqua l('Preferr ed Locatio n');
  50           }) ;
  51           it ('has the  heading Ho w many mil es away fr om this lo cation are  you willi ng to trav el?', func tion() {
  52                expect($ view.find( 'legend:eq (1)').text ()).toEqua l('* How m any miles  away from  this locat ion are yo u willing  to travel? ');
  53           }) ;
  54           it ('has the  heading Of fice Hours  (check al l that app ly)', func tion() {
  55                expect($ view.find( 'legend:eq (2)').text ()).toEqua l('* Offic e Hours (c heck all t hat apply) ');
  56           }) ;
  57  
  58           de scribe('ge tOfficeHou rs when it  is invoke d', functi on() {
  59                it('getO fficeHours  sets all  values to  selected t rue when e xists on w izard mode l', functi on() {
  60                    mode l = new Ba ckbone.Mod el({steps:  [5], offi ceHours: [ 'Weekdays' , 'Weekend s', 'Eveni ngs']});
  61                    view  = new Pri maryCareSe ctionView( {model: mo del, colle ction: col lection});
  62                    layo ut.showChi ldView('co ntent', vi ew);
  63                    expe ct(view.ge tOfficeHou rsNeeded). toHaveBeen Called();
  64                    view .collectio n.get('off iceHours') .get('valu es')
  65                         .forEach(f unction(va lueObj) {
  66                             expect (valueObj. selected). toBe(true) ;
  67                         });
  68                });
  69  
  70                it('getO fficeHours  sets only  defaulted  vaulues w hen exists  on wizard  model', f unction()  {
  71                    mode l = new Ba ckbone.Mod el({steps:  [5], offi ceHours: [ 'Weekdays' , 'Weekend s']});
  72                    view  = new Pri maryCareSe ctionView( {model: mo del});
  73                    layo ut.showChi ldView('co ntent', vi ew);
  74                    expe ct(view.ge tOfficeHou rsNeeded). toHaveBeen Called();
  75                    view .collectio n.get('off iceHours') .get('valu es')
  76                         .forEach(f unction(va lueObj) {
  77                             if (va lueObj.val ue === 'We ekdays' ||  valueObj. value ===  'Weekends' ) {
  78                                 ex pect(value Obj.select ed).toBe(t rue);
  79                             } else  {
  80                                 ex pect(value Obj.select ed).toBe(f alse);
  81                             }
  82                         });
  83                });
  84  
  85                it('getO fficeHours  sets only  defaulted  values wh en exists  on wizard  model', fu nction() {
  86                    mode l = new Ba ckbone.Mod el({steps:  [5]});
  87                    view  = new Pri maryCareSe ctionView( {model: mo del});
  88                    layo ut.showChi ldView('co ntent', vi ew);
  89                    expe ct(view.ge tOfficeHou rsNeeded). toHaveBeen Called();
  90                    view .collectio n.get('off iceHours') .get('valu es')
  91                         .forEach(f unction(va lueObj) {
  92                             expect (valueObj. selected). toBe(false );
  93                         });
  94                });
  95           }) ;
  96  
  97             describe(' updateF DNS     el when it s invoked' , function () {
  98                var offi ceHoursMod el1;
  99                var offi ceHoursMod el2;
  100                var offi ceHoursMod el3;
  101                it('upda tes wizard  model whe n the form  collectio n is chang ed with tw o selected ', functio n() {
  102                    mode l = new Ba ckbone.Mod el({steps:  [5], offi ceHours: [ 'Weekdays' ]});
  103                    view  = new Pri maryCareSe ctionView( {model: mo del});
  104                    layo ut.showChi ldView('co ntent', vi ew);
  105                    view  = new Pri maryCareSe ctionView( {model: mo del});
  106                    offi ceHoursMod el1 = new  Backbone.M odel({
  107                         id: 'offic eHours',
  108                         value: 'We ekends',
  109                         selected:  true,
  110                    });
  111                    offi ceHoursMod el2 = new  Backbone.M odel({
  112                         id: 'offic eHours',
  113                         value: 'Ev enings',
  114                         selected:  true,
  115                    });
  116                    offi ceHoursMod el3 = new  Backbone.M odel({
  117                         id: 'offic eHours',
  118                         value: 'We ekdays',
  119                         selected:  false,
  120                    });
  121                    layo ut.showChi ldView('co ntent', vi ew);
  122                      view.updat eF DNS     el(officeH oursModel1 );
  123                      view.updat eF DNS     el(officeH oursModel2 );
  124                      view.updat eF DNS     el(officeH oursModel3 );
  125                    expe ct(view.mo del.get('o fficeHours ')).toEqua l(['Weeken ds', 'Even ings']);
  126                });
  127                it('upda tes wizard  model whe n the form  collectio n is chang ed with on e selected  value', f unction()  {
  128                    // s et new val ues to sel ect
  129                    mode l = new Ba ckbone.Mod el({steps:  [5], offi ceHours: [ 'Weekends' , 'Weekday s']});
  130                    view  = new Pri maryCareSe ctionView( {model: mo del});
  131                    offi ceHoursMod el1 = new  Backbone.M odel({
  132                         id: 'offic eHours',
  133                         value: 'We ekdays',
  134                         selected:  false,
  135                    });
  136                    layo ut.showChi ldView('co ntent', vi ew);
  137                      view.updat eF DNS     el(officeH oursModel1 );
  138                    expe ct(view.mo del.get('o fficeHours ')).toEqua l(['Weeken ds']);
  139                });
  140           }) ;
  141       });
  142   });