Produced by Araxis Merge on 12/7/2018 11:36:07 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\test\watir-ruby\spec\common_fucntionality | crisis_Banner_spec.rb | 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\test\watir-ruby\spec\common_fucntionality | crisis_Banner_spec.rb | Fri Dec 7 13:25:52 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 136 |
| Changed | 1 | 2 |
| 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 | require_re lative '.. /rspec_hel per' | |
| 2 | require_re lative '.. /../pages/ community_ care/commu nity_Care_ PageObject ' | |
| 3 | require 'r ubygems' | |
| 4 | require_re lative '.. /../module /DriverUti lity' | |
| 5 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 6 | ||
| 7 | describe ' [Defect: V AR-12881 - CC - Faci lity Locat or does no t open in new tab wh en navigat ing from " Get Emerge ncy Help" window;]' do | |
| 8 | ||
| 9 | include DriverUtil ity | |
| 10 | ||
| 11 | before(: all) do | |
| 12 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 13 | @cc_po = Communi tyCare_Pag eObject.ne w(@driver) | |
| 14 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 15 | @cc_po.com mon.loginE ndsOnHome( pw_reda c t e d ) | |
| 16 | end | |
| 17 | ||
| 18 | after(:a ll) do | |
| 19 | quitDr iver | |
| 20 | end | |
| 21 | ||
| 22 | context "VAR-12881 - CC - Fa cility Loc ator does not open i n new tab when navig ating from 'Get Emer gency Help ' window;" do | |
| 23 | ||
| 24 | it "sh ould verif y Content of Crisis Banner Mod al" do | |
| 25 | @lan ding_appoi ntments.ge t_emergenc y_btn | |
| 26 | actu al_content = @landin g_appointm ents.crisi s_modal_co ntent_elem ent.text.s plit("\n") | |
| 27 | expe cted_conte nt = [\ | |
| 28 | "Get Emergency Help", | |
| 29 | "If this is a medical em ergency, p lease call 911.", | |
| 30 | "Dia l 9 1 1 fr om your mo bile devic e", | |
| 31 | "If you are in crisis or having th oughts of suicide, c all the Ve terans Cri sis Hotlin e at 1-800 -273-8255 and press 1.", | |
| 32 | "For urgent ma tters rela ted to an appointmen t within t he next 72 hours, pl ease conta ct your VA Facility. ", | |
| 33 | "OK" | |
| 34 | ] | |
| 35 | comp areContent s(expected _content, actual_con tent) | |
| 36 | end | |
| 37 | ||
| 38 | it "ve rify Confi rmation Mo dal conten t" do | |
| 39 | @lan ding_appoi ntments.cl ickOnCrisi sBannerLin k | |
| 40 | actu al_content = @cc_po. modal.leav eConfirm_e lement.tex t.split("\ n") | |
| 41 | expe cted_conte nt = [\ | |
| 42 | "Con firmation" , | |
| 43 | "You are about to leave the VA App ointments app. Selec t CONTINUE to procee d to the l ink inform ation sele cted, or s elect RETU RN to retu rn to the VA Appoint ments app. ", | |
| 44 | "Con tinue Retu rn" | |
| 45 | ] | |
| 46 | comp areContent s(expected _content, actual_con tent) | |
| 47 | end | |
| 48 | ||
| 49 | ||
| 50 | it "sh ould switc h to new t ab and ver ify the Ta b's title" do | |
| 51 | @cc_ po.modal.c ontinue | |
| 52 | swit chWindowTo WindowHand leLast | |
| 53 | getC urrentURL | |
| 54 | expe ct(getTitl e).to eq(" Veterans H ealth Admi nistration - Locatio ns") | |
| 55 | end | |
| 56 | ||
| 57 | it "sh ould navig ate back t o previous tab and c lose modal " do | |
| 58 | swit chWindowTo WindowHand leFirst | |
| 59 | @dri ver.execut e_script(" $(argument s[0]).clic k();", @la nding_appo intments.o K_btn) | |
| 60 | @lan ding_appoi ntments.ap pointment_ header_ele ment.when_ present(TI ME_OUT_LIM IT) | |
| 61 | expe ct(@landin g_appointm ents.has_e xpected_ti tle?).to e q(true) | |
| 62 | end | |
| 63 | ||
| 64 | end | |
| 65 | ||
| 66 | ||
| 67 | end | |
| 68 | ||
| 69 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.