232. EPMO Open Source Coordination Office Redaction File Detail Report

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

232.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\new-appointment-request\tests\requests\views purpose-section-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\new-appointment-request\tests\requests\views purpose-section-spec.js Fri Dec 7 13:07:38 2018 UTC

232.2 Comparison summary

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

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

232.4 Active regular expressions

No regular expressions were active.

232.5 Comparison detail

  1   define([
  2       'backb one',
  3       'Layou t',
  4       'App',
  5       'modul es/form/qu estion-vie w',
  6       'modul es/form/se ction-view ',
  7       'modul es/new-app ointment-r equest/vie ws/request s/purpose/ section-vi ew',
  8       'modul es/new-app ointment-r equest/res ources/req uest/model ',
  9   ], functio n(
  10       Backbo ne,
  11       Layout ,
  12       app,
  13       Questi onView,
  14       Sectio nView,
  15       Reques tDetailsTy pePurposeS ectionView ,
  16       Reques tModel
  17   ) {
  18       'use s trict';
  19  
  20       descri be('Reques t Details  Type Purpo se Section  View', fu nction() {
  21           va r view;
  22           va r $view;
  23           va r layout =  new Layou t();
  24           la yout.rende r();
  25  
  26           be foreEach(f unction()  {
  27                spyOn(Qu estionView .prototype , 'addForm Validation Rules');
  28                spyOn(Se ctionView. prototype,  'hideVali dationErro rsFor');
  29                spyOn(Re questDetai lsTypePurp oseSection View.proto type, 'sel ectTypeOfV isit').and .callThrou gh();
  30  
  31                view = n ew Request DetailsTyp ePurposeSe ctionView( {model: ne w RequestM odel()});
  32                  layout.sho wChildView ('f DNS     tent', vie w);
  33                $view =  view.$el;
  34           }) ;
  35           af terEach(fu nction() {
  36                  layout.get Region('f DNS     tent').emp ty();
  37           }) ;
  38  
  39           it ('initiali zes with a ll questio ns', funct ion() {
  40                expect(v iew.collec tion.lengt h).toEqual (3);
  41                expect(v iew.collec tion.at(0) .id).toEqu al('purpos eOfVisit') ;
  42                expect(v iew.collec tion.at(1) .id).toEqu al('otherP urposeOfVi sit');
  43                expect(v iew.collec tion.at(2) .id).toEqu al('visitT ype');
  44           }) ;
  45  
  46           it ('initiall y hides th e Other Re ason quest ion', func tion() {
  47                expect($ view.find( '.other-pu rpose-of-v isit-quest ion').is(' .hidden')) .toBe(true );
  48           }) ;
  49  
  50           it ("shows th e Other Re ason quest ion when ' Other' is  selected",  function( ) {
  51                $view.fi nd('#purpo seOfVisit' ).val('Oth er')
  52                    .tri gger('chan ge');
  53                expect($ view.find( '.other-pu rpose-of-v isit-quest ion').is(' .hidden')) .toBe(fals e);
  54           }) ;
  55  
  56           it ('hides th e Other Re ason quest ion when a nother Rea son is sel ected', fu nction() {
  57                $view.fi nd('#purpo seOfVisit' ).val('Oth er')
  58                    .tri gger('chan ge');
  59                expect($ view.find( '.other-pu rpose-of-v isit-quest ion').is(' .hidden')) .toBe(fals e);
  60  
  61                $view.fi nd('#purpo seOfVisit' ).val('Med ication Co ncern')
  62                    .tri gger('chan ge');
  63                expect($ view.find( '.other-pu rpose-of-v isit-quest ion').is(' .hidden')) .toBe(true );
  64           }) ;
  65  
  66           de scribe('wh en Primary  Care and  Medication  Concern a re selecte d', functi on() {
  67                beforeEa ch(functio n() {
  68                    view .model.set ('typeOfCa re', new B ackbone.Mo del({id: ' 323'}));
  69                    view .model.set ('purposeO fVisit', ' Medication  Concern') ;
  70                });
  71                it('sele cts the Ph one Call r adio butto n', functi on() {
  72                    expe ct(view.se lectTypeOf Visit).toH aveBeenCal led();
  73                    expe ct($view.f ind('input [type="rad io"][value ="Phone Ca ll"]').pro p('checked ')).toBe(t rue);
  74                });
  75  
  76                it('disp lays the p hone-call- warning te mplate', f unction()  {
  77                    expe ct($view.f ind('.phon e-call-war ning:not(. hidden)'). text()).to Equal('A P hone Call  visit is r ecommended  for Medic ation Conc erns.');
  78                });
  79           }) ;
  80           de scribe('wh en purpose  of visit  is changed  from Medi cation Con cern', fun ction() {
  81                beforeEa ch(functio n() {
  82                    view .model.set ('typeOfCa reId', '32 3');
  83                    view .model.set ('purposeO fVisit', ' Medication  Concern') ;
  84                    view .model.set ('purposeO fVisit', ' Routine Fo llow-up');
  85                });
  86                it('sele cts the Of fice Visit  radio but ton', func tion() {
  87                    expe ct(view.se lectTypeOf Visit).toH aveBeenCal led();
  88                    expe ct($view.f ind('input [type="rad io"][value ="Office V isit"]').p rop('check ed')).toBe (true);
  89                });
  90                it('does  not displ ay the pho ne-call-wa rning temp late', fun ction() {
  91                    expe ct($view.f ind('.phon e-call-war ning.hidde n').length ).toEqual( 1);
  92                });
  93           }) ;
  94           de scribe('wh en Outpati ent Mental  Health an d Medicati on Concern  are selec ted', func tion() {
  95                beforeEa ch(functio n() {
  96                    view .model.set ('typeOfCa reId', '50 2');
  97                    view .model.set ('purposeO fVisit', ' Medication  Concern') ;
  98                });
  99                it('sele cts the Of fice Visit  radio but ton', func tion() {
  100                    expe ct(view.se lectTypeOf Visit).toH aveBeenCal led();
  101                    expe ct($view.f ind('input [type="rad io"][value ="Office V isit"]').p rop('check ed')).toBe (true);
  102                });
  103                it('does  not displ ay the pho ne-call-wa rning temp late', fun ction() {
  104                    expe ct($view.f ind('.phon e-call-war ning.hidde n').length ).toEqual( 1);
  105                });
  106           }) ;
  107       });
  108   });