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\community_care | cc_appointment_listview_detailsview_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\community_care | cc_appointment_listview_detailsview_spec.rb | Fri Dec 7 13:25:54 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 198 |
| 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_re lative '.. /../module /DriverUti lity' | |
| 3 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 4 | require_re lative 'cc _SM_reques t_helper' | |
| 5 | require_re lative '.. /rspec_hel per' | |
| 6 | require_re lative '.. /../pages/ community_ care/commu nity_Care_ PageObject ' | |
| 7 | ||
| 8 | describe ' [Story VAR -9559:VAR - Booked i n CC - Req uest] | |
| 9 | [Story VAR -10457: CC - Appoint ment list details vi ew] | |
| 10 | [STORY# VA R-11873: A ppointment List: Com munity Car e Appointm ent – upda te format] ' do | |
| 11 | include DriverUtil ity | |
| 12 | include MongoUtili ty | |
| 13 | include OracleUtil ity | |
| 14 | ||
| 15 | before(: all) do | |
| 16 | ||
| 17 | init ializeConf igurations (VAR_BASE_ URL) | |
| 18 | @db = connectT oMongoDB(" var-utilit y") | |
| 19 | remo veDocument ("bookedCC Appointmen ts", "5500 94300", @d b) | |
| 20 | dele teAllCCReq uestData | |
| 21 | stag e_cc_data_ reqst | |
| 22 | docu mentCCRequ est('Bosto n Friendly Text') | |
| 23 | docu mentDetail code | |
| 24 | inse rtDocument ("bookedCC Appointmen ts", docum entCCintoM ongo, @db) | |
| 25 | @cc_ po = Commu nityCare_P ageObject. new(@drive r) | |
| 26 | @lan ding_appoi ntments = LandingApp ointments. new(@drive r) | |
| 27 | @app ointmentTi me = Time. now.strfti me("%H:%M" ) | |
| 28 | @cc_po.com mon.loginE ndsOnHome( pw_reda c t e d ) | |
| 29 | @loc ation = "B OSTON HCS VAMC" | |
| 30 | end | |
| 31 | ||
| 32 | after( :all) do | |
| 33 | @cc_ po.loginLo gout.logou t | |
| 34 | end | |
| 35 | ||
| 36 | ||
| 37 | context 'AC#VAR-11 047|TC#VAR -11048:VAR - Booked in CC - Re quest | |
| 38 | AC#VAR-11 049|VAR-11 050 CC - A ppointment list deta ils view | |
| 39 | [AC#VAR-11 993|TC#VAR -11994: Ap pointment List: VA F acility Ap pointment – update f ormat]' do | |
| 40 | ||
| 41 | ||
| 42 | it 'S elect Book ed CC Requ est and Ve rify the c ontent of Details Vi ew' do | |
| 43 | find CCrequestf romAppoint mentTable | |
| 44 | @app ointmentTi me = @appo intmentTim e.gsub!(': ', '') | |
| 45 | actu al_content = @cc_po. communityC are.cc_req uest_detai ls_element .text.spli t("\n") | |
| 46 | expe cted_conte nt = [\ | |
| 47 | "C ommunity A ppointment ", | |
| 48 | "D isclaimer: Any futur e changes to this ap pointment that you m ake direct ly with th e communit y provider listed be low will n ot be refl ected in t he informa tion below .", | |
| 49 | "D ate and Ti me: " + ge tDayofWeek (getDateNt hDaysFromN ow(5,"%m/% d/%Y")) + "," + " #{ getDateNth DaysFromNo w(5,"%m/%d /%Y")}", | |
| 50 | @a ppointment Time + " # {Time.now. zone}", | |
| 51 | "A dd to Cale ndar", | |
| 52 | "D etails: Co mmunity Ap pointment" , | |
| 53 | "S mith's Car e", | |
| 54 | "J ohn Smith" , | |
| 55 | "2 4664 Tribe Sq", | |
| 56 | "D ulles, VA 20166", | |
| 57 | "( 333) 333-4 444", | |
| 58 | "N eed to can cel or upd ate this a ppointment ?", | |
| 59 | "P lease cont act the pr ovider dir ectly" | |
| 60 | ] | |
| 61 | comp areContent s(expected _content, actual_con tent) | |
| 62 | ||
| 63 | end | |
| 64 | ||
| 65 | it 'V erify Prep are for th is appoint ment secti on' do | |
| 66 | actu al_content = @cc_po. communityC are.cc_pre pare_for_a ppt_elemen t.text.spl it("\n") | |
| 67 | expe cted_conte nt = [\ | |
| 68 | "P repare for this Appo intment", | |
| 69 | "I nstruction s to Veter an", | |
| 70 | "P lease brin g two form of identi fication", | |
| 71 | ] | |
| 72 | comp areContent s(expected _content, actual_con tent) | |
| 73 | end | |
| 74 | ||
| 75 | it 'S hould veri fy Appoint ment is di splayed in list afte r app refr esh' do | |
| 76 | but ton_elemen t = @drive r.button(: id => 'bac k-btn') | |
| 77 | @dr iver.execu te_script( "$(argumen ts[0]).cli ck();",but ton_elemen t) | |
| 78 | @cc _po.common .waitWhile SpinnerPre sent | |
| 79 | @la nding_appo intments.c lickRefres h | |
| 80 | @cc _po.common .waitWhile SpinnerPre sent | |
| 81 | app ointmentDa te = "#{ge tDayofWeek (getDateNt hDaysFromN ow(5,"%m/% d/%Y"))}," + " #{get DateNthDay sFromNow(5 ,"%m/%d/%Y ")}" | |
| 82 | sle ep 2 | |
| 83 | @la nding_appo intments.a ppointment _header_el ement.when _present(T IME_OUT_LI MIT) | |
| 84 | Wat ir::Wait.u ntil {@lan ding_appoi ntments.ap pointment_ table_list _elements. length >= 1} | |
| 85 | all _appointme nts = @lan ding_appoi ntments.li st_of_appo intments_e lements | |
| 86 | app ointment_t o_verify = "View det ails for y our appoin tment," + "\n" + "Da te/Time:" + "\n" + " #{getDayof Week(getDa teNthDaysF romNow(5," %m/%d/%Y") )}," + " # {getDateNt hDaysFromN ow(5,"%m/% d/%Y")}" + "\n" + "# {@appointm entTime}" + "\n" + " #{appointm entDate} # {@appointm entTime.gs ub("", " " )}" + "\n" +"Details :" + "\n" + "Communi ty Care Ap pointment" + "\n" +" John Smith " + "\n" + "Smith's Care" + "\ n" + "2466 4 Tribe Sq " + "\n" + "Dulles, VA 20166" + "\n" + " (333) 333- 4444" + "\ n" + "Prep are/Join:" + "\n" +" Prepare fo r your app ointment" | |
| 87 | p a ppointment _to_verify | |
| 88 | exp ect(@landi ng_appoint ments.veri fyAppointm entDetails InList(all _appointme nts, appoi ntment_to_ verify)).t o eq(true) | |
| 89 | ||
| 90 | end | |
| 91 | ||
| 92 | end | |
| 93 | ||
| 94 | end | |
| 95 | ||
| 96 | ||
| 97 | ||
| 98 | ||
| 99 | ||
| 100 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.