Produced by Araxis Merge on 5/10/2018 8:40:52 AM 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | MHED_APPS_CIF.zip\VAR v4.2.7\var-web-4.2.7@0810ae549c1.zip\veteran-appointment-requests\app\modules\learn-about-community-care | learn-about-community-care-popup-view_spec.js | Mon Apr 9 06:06:53 2018 UTC |
2 | MHED_APPS_CIF.zip\VAR v4.2.7\var-web-4.2.7@0810ae549c1.zip\veteran-appointment-requests\app\modules\learn-about-community-care | learn-about-community-care-popup-view_spec.js | Thu May 3 13:35:55 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 5 | 98 |
Changed | 4 | 8 |
Inserted | 0 | 0 |
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. DNS /opa/choic eact/'); | |
35 | expect($ view.find( '.ui-conte nt p:nth-o f-type(2) a').attr(' href')) | |
36 | .toEqual(' https://ww w. DNS /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. DNS /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. DNS /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 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.