Produced by Araxis Merge on 12/7/2018 11:36:06 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\appointments | appt_custom_messages_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\appointments | appt_custom_messages_spec.rb | Fri Dec 7 13:25:46 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 264 |
| 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 | #!/bin/env ruby | |
| 2 | # encoding : utf-8 | |
| 3 | require 'r ubygems' | |
| 4 | require 'r spec' | |
| 5 | require 'w atir-webdr iver' | |
| 6 | require 'p age-object ' | |
| 7 | require 'o ci8' | |
| 8 | ||
| 9 | require_re lative '.. /../module /DriverUti lity' | |
| 10 | require_re lative '.. /rspec_hel per' | |
| 11 | require_re lative '.. /../pages/ landing' | |
| 12 | require_re lative '.. /../pages/ login' | |
| 13 | require_re lative '.. /../pages/ eula' | |
| 14 | require_re lative '.. /../common /common' | |
| 15 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 16 | require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest' | |
| 17 | require_re lative '.. /../pages/ appointmen ts/booked_ appointmen t_detail' | |
| 18 | require_re lative '.. /../pages/ appointmen ts/custom_ messages' | |
| 19 | require_re lative '.. /../helper /modal' | |
| 20 | require_re lative '.. /../module /database/ OracleUtil ity' | |
| 21 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 22 | require_re lative '.. /../module /DateUtili ty' | |
| 23 | require_re lative '.. /../helper /error_val idation' | |
| 24 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 25 | ||
| 26 | describe ' [Story: VA R-6029: Cu stom Messa ge Integra tion – Fie ld: Type o f Care] | |
| 27 | [Story: VA R-8703: Lo cation Lev el Type of Care - Cu stom text - update i n new desi gn] | |
| 28 | [Story: VA R-9195: Ne w Appointm ent/Reques t Form: St ep 1: Type of Care] | |
| 29 | [Story: VA R-6032: Cu stom Messa ge Integra tion – Fie ld: Clinic ] | |
| 30 | [Story: VA R-10188: V AR, Utilit y - Integr ate 5 digi t custom t ext featur e (clinic and select date/time )] | |
| 31 | [Story# VA R-5686: Cu stom Messa ge Integra tion – Fie ld: Don’t see a date or time t hat works for you?] | |
| 32 | [Story# VA R-4428: Di rect Sched uling - Da te Not Fou nd - Switc h to Reque st] | |
| 33 | [Story# VA R-3626: Re quest Stat us and App ointment R eminder – Informatio n Modal on New Appoi ntments/Re quests]' d o | |
| 34 | ||
| 35 | include DriverUtil ity | |
| 36 | include OracleUtil ity | |
| 37 | include DateUtilit y | |
| 38 | include MongoUtili ty | |
| 39 | ||
| 40 | before(: all) do | |
| 41 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 42 | @eula = Eula.new (@driver) | |
| 43 | @login = Login.n ew(@driver ) | |
| 44 | @commo n = Common .new(@driv er) | |
| 45 | @user_ menu = Use rMenuOptio n.new(@dri ver) | |
| 46 | @custo mMessages = CustomMe ssages.new (@driver) | |
| 47 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 48 | @modal = Modal.n ew(@driver ) | |
| 49 | @new_a ppointment = NewAppo intmentReq uest.new(@ driver) | |
| 50 | @detai l = Booked Appointmen tDetail.ne w(@driver) | |
| 51 | @error = Error_V alidation. new(@drive r) | |
| 52 | TITLE = "Appoint ments/Requ ests" | |
| 53 | @three DaysLater = getDateN thDaysFrom Now(3, "%m /%d/%Y") | |
| 54 | @db = connectToM ongoDB("va r-utility" ) | |
| 55 | restor eCollectio n("custom- messages", "var-util ity", "cus tom_messag es_Custom. json", @db ) | |
| 56 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db ) | |
| 57 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 58 | restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "direct Scheduling Enabled.js on", @db) | |
| 59 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db) | |
| 60 | restor eCollectio n("custom- friendly-t ext", "var -utility", "facility _friendly_ name.json" , @db) | |
| 61 | @common.lo ginEndsOnH ome( pw_reda c t e d ) | |
| 62 | ||
| 63 | end | |
| 64 | ||
| 65 | after(:a ll) do | |
| 66 | restor eCollectio n("custom- messages", "var-util ity", "cus tom_messag es_Default .json", @d b) | |
| 67 | @drive r.close | |
| 68 | end | |
| 69 | ||
| 70 | context 'AC#VAR-69 65|TC-VAR- 6966: Cust om Message Integrati on – Field : Type of Care | |
| 71 | AC#VAR-96 71|TC#VAR- 9672: New Appointmen t/Request Form: Step 1: Type o f Care | |
| 72 | AC#VAR-88 34|TC#VAR- 8835: Loca tion Level Type of C are - Cust om text - update in new design ' do | |
| 73 | ||
| 74 | it 'sh ould show text immed iately bel ow the Typ e of Care input fiel d is updat ed to refl ect any ch anges in m essage con tent for t he Type of Care fiel d' do | |
| 75 | @cus tomMessage s.new_appt _request_b tn_element .wait_unti l_present( TIME_OUT_L IMIT) | |
| 76 | @com mon.select AddAppoint mentButton ("VA") | |
| 77 | @new _appointme nt.selectN ewAppointm entAndSche dule(PRIMA RY_CARE, " 523", "523 ", "direct ") | |
| 78 | @cus tomMessage s.custom_m essage_typ e_of_care_ element.wa it_until_p resent(TIM E_OUT_LIMI T) | |
| 79 | expe ct(@custom Messages.c ustom_mess age_type_o f_care_ele ment.text) .to eq("Th e VA Appoi ntments ap p supports schedulin g specific types of care. If y ou do not find the c are you ne ed, please contact y our facili ty for ass istance.") | |
| 80 | end | |
| 81 | ||
| 82 | end | |
| 83 | ||
| 84 | ||
| 85 | context 'AC#VAR-71 98|TC#VAR- 7199: Cust om Message Integrati on – Field : Clinic | |
| 86 | AC#VAR-10 488|TC#VAR -10489: VA R, Utility - Integra te 5 digit custom te xt feature (clinic a nd select date/time) | |
| 87 | AC#VAR-642 3|TC#VAR-6 424: Valid ate Custom Message I ntegration – Field: Don’t see a date or time that works for you | |
| 88 | AC#VAR-447 3|TC#VAR-4 474: Direc t Scheduli ng - Date Not Found - Switch t o Request | |
| 89 | AC#VAR-569 0|TC#VAR-5 691: Valid ate Reques t Status a nd Appoint ment Remin der – Info rmation Mo dal on New Appointme nts/Reques ts' do | |
| 90 | ||
| 91 | it 'sh ould show text immed iately bel ow the Cli nic select ion list t o reflect any change s in messa ge content for the C linic fiel d' do | |
| 92 | @cus tomMessage s.custom_m essage_typ e_of_clini c_element. wait_until _present(T IME_OUT_LI MIT) | |
| 93 | expe ct(@custom Messages.c ustom_mess age_type_o f_clinic_e lement.tex t).to eq(" If you don 't see the custom cl inic that matches yo ur needs, please con tact your facility f or assista nce.") | |
| 94 | end | |
| 95 | ||
| 96 | it 'sh ould see t ext for Da te/Time se lection in Dont see a date Dia logue' do | |
| 97 | ||
| 98 | @new _appointme nt.selectC linic("32" ) | |
| 99 | @new _appointme nt.provide ReasonForA ppointment ("Testing Date Custo m Text") | |
| 100 | @new _appointme nt.selectP referedDat e(@threeDa ysLater, " 10:00") | |
| 101 | @new _appointme nt.no_date _time_that _works_ele ment.when_ present(TI ME_OUT_LIM IT) | |
| 102 | expe ct(@new_ap pointment. no_date_ti me_that_wo rks_elemen t.visible? ).to eq(tr ue) | |
| 103 | expe ct(@new_ap pointment. no_date_ti me_that_wo rks_elemen t.text).to eq("Don't see a dat e or time that works for you?" ) | |
| 104 | end | |
| 105 | ||
| 106 | ||
| 107 | it 'sh ould see D ont see a date or ti me modal a nd instruc tional tex t' do | |
| 108 | @new _appointme nt.no_date _time_that _works | |
| 109 | @mod al.modalTi tle_elemen t.when_pre sent(TIME_ OUT_LIMIT) | |
| 110 | expe ct(@modal. modalTitle ).to eq("D on't see a date or t ime that w orks for y ou?") | |
| 111 | expe ct(@modal. content).t o eq('This field is customizab le through VAR-Utili ty. To mak e changes to what yo u see on t his pop up . Log into Var-Utili ty and cha nge Messag e 1.') | |
| 112 | expe ct(@modal. buttons_el ements[0]. text).to e q("OK") | |
| 113 | end | |
| 114 | ||
| 115 | ||
| 116 | it "Sh ould Valid ate Notifi cation Mod al Title" do | |
| 117 | @moda l.buttons_ elements[0 ].click | |
| 118 | @new_ appointmen t.notifica tion_setti ng_element .click | |
| 119 | @moda l.modalTit le_element .when_pres ent(TIME_O UT_LIMIT) | |
| 120 | expec t(@modal.m odalTitle) .to eq("Ap pointment and Reques t Updates" ) | |
| 121 | end | |
| 122 | ||
| 123 | it "sho uld valida te Notific ation Moda l content" do | |
| 124 | expec ted_conten t =[\ | |
| 125 | "When you opt in to receiv e appointm ent and re quest upda tes, you w ill receiv e the foll owing noti fications: ", | |
| 126 | "Reque st Status Updates: T hese updat es are sen t each tim e the stat us to your request c hanges. Fo r example, when your request c hanges fro m a \"Subm itted\" st atus to a \"Schedule d\" status you will be notifie d of that status cha nge."] | |
| 127 | actua l_content = @modal.c ontent.spl it("\n") | |
| 128 | compa reContents (actual_co ntent, ex pected_con tent) | |
| 129 | @moda l.buttons_ elements[0 ].click | |
| 130 | end | |
| 131 | end | |
| 132 | ||
| 133 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.