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 | filter_clinics_by_selected_location_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 | filter_clinics_by_selected_location_spec.rb | Fri Dec 7 13:25:48 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 186 |
| 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 | require 'w atir-scrol l' | |
| 9 | ||
| 10 | require_re lative '.. /../module /DriverUti lity' | |
| 11 | require_re lative '.. /rspec_hel per' | |
| 12 | require_re lative '.. /../pages/ landing' | |
| 13 | require_re lative '.. /../pages/ login' | |
| 14 | require_re lative '.. /../pages/ eula' | |
| 15 | require_re lative '.. /../common /common' | |
| 16 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 17 | require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest' | |
| 18 | require_re lative '.. /../pages/ appointmen ts/booked_ appointmen t_detail' | |
| 19 | require_re lative '.. /../helper /modal' | |
| 20 | require_re lative '.. /../module /database/ OracleUtil ity' | |
| 21 | require_re lative '.. /../module /DateUtili ty' | |
| 22 | require_re lative '.. /../helper /error_val idation' | |
| 23 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 24 | require_re lative '.. /../pages/ feedback' | |
| 25 | require_re lative '.. /../pages/ landing_no tification s' | |
| 26 | ||
| 27 | describe ' [Story# VA R-10193: V AR & Utili ty Integra tion - Dir ect Schedu ling - New Appointme nt Form - Filter Cli nics by se lected loc ation]' d o | |
| 28 | ||
| 29 | include DriverUtil ity | |
| 30 | include OracleUtil ity | |
| 31 | include DateUtilit y | |
| 32 | include MongoUtili ty | |
| 33 | ||
| 34 | ||
| 35 | before(: all) do | |
| 36 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 37 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 38 | @login = Login.n ew(@driver ) | |
| 39 | @eula = Eula.new (@driver) | |
| 40 | @commo n = Common .new(@driv er) | |
| 41 | @modal = Modal.n ew(@driver ) | |
| 42 | @new_a ppointment = NewAppo intmentReq uest.new(@ driver) | |
| 43 | @detai l = Booked Appointmen tDetail.ne w(@driver) | |
| 44 | @error = Error_V alidation. new(@drive r) | |
| 45 | @feedb ack = Feed back.new(@ driver) | |
| 46 | @landi ng_notific ations = L andingNoti fications. new(@drive r) | |
| 47 | @modal = Modal.n ew(@driver ) | |
| 48 | TITLE = "Appoint ments/Requ ests" | |
| 49 | @db = connectToM ongoDB("va r-utility" ) | |
| 50 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db ) | |
| 51 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 52 | restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "direct Scheduling Enabled.js on", @db) | |
| 53 | @common.lo ginEndsOnH ome( pw_reda c t e d ) | |
| 54 | @landi ng_appoint ments.appo intment_he ader_eleme nt.wait_un til_presen t(TIME_OUT _LIMIT) | |
| 55 | ||
| 56 | end | |
| 57 | ||
| 58 | after(:a ll) do | |
| 59 | @drive r.close | |
| 60 | end | |
| 61 | ||
| 62 | context 'AC#VAR-10 482|TC#VAR -10483: VA R & Utilit y Integrat ion - Dire ct Schedul ing - New Appointmen t Form - F ilter Clin ics by sel ected loca tion' do | |
| 63 | ||
| 64 | it 'sh ould displ ay clinics list for a given ty pe of care at my sel ected loca tion' do | |
| 65 | #Sel ect Type o f Care = P rimary Car e, Locatio n = Boston , and Sche duling Met hod = Dire ct | |
| 66 | @com mon.select AddAppoint mentButton ("VA") | |
| 67 | @new _appointme nt.selectN ewAppointm entAndSche dule(PRIMA RY_CARE, " 523", "523 ", "direct ") | |
| 68 | ||
| 69 | ||
| 70 | #Cli nics shoul d populate . Verify o nly Parent Clinics P opulate | |
| 71 | @new _appointme nt.mutiple _clinics_e lement.wai t_until_pr esent(TIME _OUT_LIMIT ) | |
| 72 | expe cted_conte nt =[\ | |
| 73 | "BO PA CT B1", | |
| 74 | "JP PR IMARY CARE DR. CREAM ER", | |
| 75 | "BO PC C QUICK AC CESS AM 22 04", | |
| 76 | "Prima ry Care - No Time Sl ot" | |
| 77 | ] | |
| 78 | ||
| 79 | actu al_content = @new_ap pointment. mutiple_cl inics_elem ent.text.s plit("\n") | |
| 80 | ||
| 81 | comp areContent s(actual_c ontent, e xpected_co ntent) | |
| 82 | end | |
| 83 | ||
| 84 | it "Sh ould verif y clinic l ist change when new location i s selected " do | |
| 85 | @new _appointme nt.selectT ypeOfCare( PRIMARY_CA RE) | |
| 86 | @new _appointme nt.selectS tate("636A 8") | |
| 87 | @new _appointme nt.selectS chedulingM ethod("dir ect") | |
| 88 | @new _appointme nt.single_ clinic_inf o_element. wait_until _present(T IME_OUT_LI MIT) | |
| 89 | expe ct(@new_ap pointment. single_cli nic_info_e lement.tex t).to eq(" Sanctum Sa nctorum") | |
| 90 | end | |
| 91 | ||
| 92 | end | |
| 93 | ||
| 94 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.