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\appointments | step2_city_state_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 | step2_city_state_spec.rb | Fri Dec 7 13:25:48 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 208 |
| 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 'r ubygems' | |
| 2 | require 'r spec' | |
| 3 | require 'w atir-webdr iver' | |
| 4 | require 'p age-object ' | |
| 5 | require 'o ci8' | |
| 6 | ||
| 7 | require_re lative '.. /../module /DriverUti lity' | |
| 8 | require_re lative '.. /rspec_hel per' | |
| 9 | require_re lative '.. /../pages/ login' | |
| 10 | require_re lative '.. /../common /common' | |
| 11 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 12 | require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest' | |
| 13 | require_re lative '.. /../module /database/ OracleUtil ity' | |
| 14 | require_re lative '.. /../module /DateUtili ty' | |
| 15 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 16 | ||
| 17 | describe ' [Story# VA R-11344: L ocation Se lection Di splay Impr ovements t o Support Integrated VistA]' do | |
| 18 | ||
| 19 | include DriverUtil ity | |
| 20 | include OracleUtil ity | |
| 21 | include DateUtilit y | |
| 22 | include MongoUtili ty | |
| 23 | ||
| 24 | ||
| 25 | before(: all) do | |
| 26 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 27 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 28 | @login = Login.n ew(@driver ) | |
| 29 | @commo n = Common .new(@driv er) | |
| 30 | @new_a ppointment = NewAppo intmentReq uest.new(@ driver) | |
| 31 | TITLE = "Appoint ments/Requ ests" | |
| 32 | ||
| 33 | @patie ntID ="111 3138327" | |
| 34 | ||
| 35 | #mongo | |
| 36 | @db = connectToM ongoDB("va r-utility" ) | |
| 37 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db ) | |
| 38 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 39 | restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "direct Scheduling Enabled.js on", @db) | |
| 40 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db) | |
| 41 | restor eCollectio n("custom- friendly-t ext", "var -utility", "facility _friendly_ name.json" , @db) | |
| 42 | delete PatientDat a(@patient ID) | |
| 43 | @common.lo ginEndsOnH ome( pw_reda c t e d ) | |
| 44 | @landi ng_appoint ments.appo intment_he ader_eleme nt.wait_un til_presen t(TIME_OUT _LIMIT) | |
| 45 | @commo n.selectAd dAppointme ntButton(" VA") | |
| 46 | end | |
| 47 | ||
| 48 | after(:a ll) do | |
| 49 | @drive r.close | |
| 50 | end | |
| 51 | ||
| 52 | context 'AC#VAR-11 736|TC#VAR -11738: Lo cation Sel ection Dis play Impro vements to Support I ntegrated VistA' do | |
| 53 | ||
| 54 | it "Ve rify City, State Ste p2 Multi D FN" do | |
| 55 | @new _appointme nt.selectT ypeOfCare( PRIMARY_CA RE) | |
| 56 | expe cted_conte nt =[\ | |
| 57 | "Step 2: City, S tate", | |
| 58 | "* Cho ose the cl osest city and state for this appointmen t:", | |
| 59 | "Selec t", | |
| 60 | "Des M oines, IA" , | |
| 61 | "Iowa City, IA", | |
| 62 | "BOSTO N, MA", | |
| 63 | "Omaha , NE" | |
| 64 | ] | |
| 65 | ||
| 66 | actu al_content = @new_ap pointment. city_state _section_e lement.tex t.split("\ n") | |
| 67 | comp areContent s( expecte d_content, actual_co ntent) | |
| 68 | end | |
| 69 | ||
| 70 | it "Ve rify City, State Ste p2 Single DFN" do | |
| 71 | @new _appointme nt.cancelF orm | |
| 72 | @com mon.logout AndLogback WithADiffe rentUser(M ockUser03) | |
| 73 | @com mon.select AddAppoint mentButton ("VA") | |
| 74 | @new _appointme nt.selectT ypeOfCare( PRIMARY_CA RE) | |
| 75 | expe cted_conte nt =[\ | |
| 76 | "Step 2: City, S tate", | |
| 77 | "* Cho ose the cl osest city and state for this appointmen t:", | |
| 78 | "Selec t", | |
| 79 | "BOSTO N, MA" | |
| 80 | ] | |
| 81 | ||
| 82 | actu al_content = @new_ap pointment. city_state _section_e lement.tex t.split("\ n") | |
| 83 | comp areContent s( expecte d_content, actual_co ntent) | |
| 84 | ||
| 85 | end | |
| 86 | ||
| 87 | it "Ve rify Step 3: Select Location d isplayed w ith Single DFN" do | |
| 88 | expe cted_conte nt =[\ | |
| 89 | "Step 3: Locatio n", | |
| 90 | "The f ollowing f acility lo cations su pport sche duling #{P RIMARY_CAR E} appoint ments thro ugh this a pp. If you cannot fi nd the loc ation you need, plea se visit t he VA Faci lity Locat or to cont act the fa cility for assistanc e.", | |
| 91 | "* Sel ect the lo cation you want to v isit:", | |
| 92 | "Selec t", | |
| 93 | "BOSTO N HCS VAMC (BOSTON, MA)", | |
| 94 | "BROCK TON VAMC ( BROCKTON, MA)", | |
| 95 | "QUINC Y (QUINCY, MA)" | |
| 96 | ] | |
| 97 | ||
| 98 | actu al_content = @new_ap pointment. facility_s ection_ele ment.text. split("\n" ) | |
| 99 | ||
| 100 | comp areContent s( expecte d_content, actual_co ntent) | |
| 101 | end | |
| 102 | ||
| 103 | end | |
| 104 | ||
| 105 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.