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\help | help-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\help | help-popup-view_spec.js | Thu May 3 17:22:56 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 4 | 120 |
Changed | 3 | 6 |
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/help/he lp-popup-v iew', | |
4 | ], functio n(External Navigation WarningPop up, HelpPo pupView) { | |
5 | 'use s trict'; | |
6 | ||
7 | descri be('Help P opup', fun ction() { | |
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 ('Help'); | |
28 | }) ; | |
29 | ||
30 | it ('has the required h elp desk p aragraphs' , function () { | |
31 | expect($ view.find( '.ui-conte nt p:first -of-type') .text()) | |
32 | .toE qual('Help Desk (tol l free): ( 877) 470-5 947 Weekda ys 7 a.m. - 7 p.m. ( CT)'); | |
33 | expect($ view.find( '.ui-conte nt p:nth-o f-type(2)' ).text()) | |
34 | .toEqual(' If you nee d assistan ce with th e VA Appoi ntments Ap p, dial PII to speak with a Hel p Desk Rep resentativ e. The Hel p Desk is open Monda y - Friday from 7 a. m. to 7 p. m. CST. Fo r TTY assi stance, di al 711. If you have questions about your DS Logon account, v isit mobil e. DNS /dslogon o r dial 1-8 00-983-093 7 for assi stance. Mo bile App T raining: P lease visi t mobile. DNS /appstore, and searc h for the VA Appoint ment App t o access t raining ma terials.') ; | |
35 | }) ; | |
36 | ||
37 | it ('has the required e mergency p aragraphs' , function () { | |
38 | expect($ view.find( '.ui-conte nt p:nth-o f-type(3)' ).text()) | |
39 | .toE qual('Emer gencies'); | |
40 | expect($ view.find( '.ui-conte nt p:nth-o f-type(4)' ).text()) | |
41 | .toEqual(' If you fee l that you r informat ion may ha ve been co mpromised, contact y our local VA facilit y to obtai n the cont act inform ation for your Priva cy Officer . To ident ify your l ocal VA fa cility, vi sit View V A Faciliti es, or by copying an d pasting the follow ing link i nto your b rowser: ht tps://www. DNS /directory /guide/div ision.asp? dnum=1. No te that yo u should n ever use t his app in an emerge ncy situat ion. If yo u encounte r an emerg ency, call your loca l medical center or dial 911. Veterans C risis Line : 1-800-27 3-8255 Pre ss 1.'); | |
42 | expect($ view.find( '.ui-conte nt p:nth-o f-type(4) a').attr(' href')) | |
43 | .toEqual(' https://ww w. DNS /directory /guide/div ision.asp? dnum=1'); | |
44 | }) ; | |
45 | ||
46 | it ('has a pa ragraph ab out and li nk to the user guide ', functio n () { | |
47 | expect($ view.find( '.ui-conte nt p:nth-o f-type(5)' ).text()) | |
48 | .toE qual('User Guide'); | |
49 | expect($ view.find( '.ui-conte nt p:nth-o f-type(5) a').attr(' href')) | |
50 | .toE qual('app/ modules/us er-guide/V eteran_App ointment_R equest_UG. pdf'); | |
51 | }) ; | |
52 | ||
53 | it ('shows a warning po pup for ex ternal lin ks in the notificati on text bo dy', funct ion() { | |
54 | view.$el .find('.ex ternal-lin k').click( ); | |
55 | expect(E xternalNav igationWar ningPopup. prototype. openPopup) .toHaveBee nCalled(); | |
56 | }) ; | |
57 | ||
58 | it ('has an O K button', function( ) { | |
59 | var logi nBtn = $vi ew.find('# help-ok-bt n'); | |
60 | expect(l oginBtn.te xt()).toEq ual('OK'); | |
61 | }) ; | |
62 | }); | |
63 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.