Produced by Araxis Merge on 5/30/2019 1:49:18 PM Eastern 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 | var_web_release_4_18.zip\var_web_release_4_8_ebb0ab2774d.zip\veteran-appointment-requests\app\modules\help | help-popup-view_spec.js | Fri May 10 18:55:49 2019 UTC |
| 2 | var_web_release_4_18.zip\var_web_release_4_8_ebb0ab2774d.zip\veteran-appointment-requests\app\modules\help | help-popup-view_spec.js | Wed May 29 22:12:41 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 122 |
| Changed | 2 | 4 |
| 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 1- 877-470-59 47 to spea k with a H elp Desk R epresentat ive. The H elp Desk i s open Mon day - Frid ay from 7 a.m. to 7 p.m. CST. For TTY as sistance, dial 711. If you hav e question s about yo ur DS Logo n account, visit DNS . URL /dslogon o r dial 1-8 00-983-093 7 for assi stance. Mo bile App T raining: P lease visi t DNS . URL /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 | .toE qual('If y ou feel th at your in formation may have b een compro mised, con tact your local VA f acility to obtain th e contact informatio n for your Privacy O fficer. To identify your local VA facili ty, visit VA Facilit y Locator. Note that you shoul d never us e this app in an eme rgency sit uation. If you encou nter an em ergency, c all your l ocal medic al center or dial 91 1. Veteran s Crisis L ine: 1-800 -273-8255 Press 1.') ; | |
| 42 | expect($ view.find( '.ui-conte nt p:nth-o f-type(4) a').attr(' href')) | |
| 43 | .toEqual(' https:// DNS . URL /find-loca tions/'); | |
| 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.