Produced by Araxis Merge on 12/7/2018 11:36:03 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\SCRUB\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\app\modules\learn-about-community-care | learn-about-community-care-popup-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\learn-about-community-care | learn-about-community-care-popup-view_spec.js | Fri Dec 7 13:07:28 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 5 | 98 |
| Changed | 4 | 8 |
| Inserted | 1 | 1 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | define([ | |||||
| 2 | 'modul es/page/po pup/extern al-nav-pop up-view', | |||||
| 3 | 'modul es/learn-a bout-commu nity-care/ learn-abou t-communit y-care-pop up-view', | |||||
| 4 | ], functio n(External Navigation WarningPop up, HelpPo pupView) { | |||||
| 5 | 'use s trict'; | |||||
| 6 | ||||||
| 7 | descri be('Learn About Comm unity Care Popup', f unction() { | |||||
| 8 | va r view; | |||||
| 9 | va r $view; | |||||
| 10 | ||||||
| 11 | be foreEach(f unction() { | |||||
| 12 | spyOn(Ex ternalNavi gationWarn ingPopup.p rototype, 'openPopup '); | |||||
| 13 | ||||||
| 14 | view = n ew HelpPop upView({el AfterClose : '.elemen t-for-focu s'}); | |||||
| 15 | ||||||
| 16 | $('body' ).append(' <a class=" element-fo r-focus" h ref="#"></ a>'); | |||||
| 17 | view.ren der(); | |||||
| 18 | $view = view.$el; | |||||
| 19 | }) ; | |||||
| 20 | ||||||
| 21 | af terEach(fu nction() { | |||||
| 22 | view.des troy(); | |||||
| 23 | $('.elem ent-for-fo cus').remo ve(); | |||||
| 24 | }) ; | |||||
| 25 | ||||||
| 26 | it ('has a he ading', fu nction() { | |||||
| 27 | expect($ view.find( 'h2.ui-tit le').text( )).toEqual ('Learn Ab out Commun ity Care') ; | |||||
| 28 | }) ; | |||||
| 29 | ||||||
| 30 | it ('has the required e mergency p aragraphs' , function () { | |||||
| 31 | expect($ view.find( '.ui-conte nt p:nth-o f-type(1)' ).text()) | |||||
| 32 | .toE qual('The Veterans C hoice Prog ram (VCP), part of C ommunity C are, allow s Veterans who are a lready enr olled in V A Healthca re to rece ive health care in t heir commu nity, whil e still ha ving acces s to their regular V A health c are. Under the VCP, Veterans w ho have to wait more than 30 d ays or tra vel over 4 0 miles ar e able to receive ca re in the community, connectin g them to timely and convenien t access t o health c are. VCP 4 0 mile eli gible Vete rans will now be abl e to submi t scheduli ng request s directly through t he VA Appo intments a pp. '); | |||||
| 33 | expect($ view.find( '.ui-conte nt p:nth-o f-type(2)' ).text()) | |||||
| 34 | .toEqual(' To learn m ore inform ation abou t the Vete rans Choic e Program and to see if you ar e eligible visit: ht tps://www. DOMAIN . EX /opa/choic eact/'); | |||||
| 35 | expect($ view.find( '.ui-conte nt p:nth-o f-type(2) a').attr(' href')) | |||||
| 36 | .toEqual(' https://ww w. DOMAIN . EX /opa/choic eact/'); | |||||
| 37 | expect($ view.find( '.ui-conte nt p:nth-o f-type(3)' ).text()) | |||||
| 38 | .toEqual(' To access a current list of ap proved pro viders, vi sit: https ://www. DOMAIN . EX /opa/apps/ locator/in dex.html') ; | |||||
| 39 | expect($ view.find( '.ui-conte nt p:nth-o f-type(3) a').attr(' href')) | |||||
| 40 | .toEqual(' https://ww w. DOMAIN . EX /opa/apps/ locator/in dex.html') ; | |||||
| 41 | }) ; | |||||
| 42 | ||||||
| 43 | it ('shows a warning po pup for ex ternal lin ks in the notificati on text bo dy', funct ion() { | |||||
| 44 | view.$el .find('.ex ternal-lin k').click( ); | |||||
| 45 | expect(E xternalNav igationWar ningPopup. prototype. openPopup) .toHaveBee nCalled(); | |||||
| 46 | }) ; | |||||
| 47 | ||||||
| 48 | it ('has an O K button', function( ) { | |||||
| 49 | var logi nBtn = $vi ew.find('# learncc-ok -btn'); | |||||
| 50 | expect(l oginBtn.te xt()).toEq ual('OK'); | |||||
| 51 | }) ; | |||||
| 52 | }); | |||||
| 53 | }); | |||||
| 54 | TTTT |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.