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\landing | landing_page_appointments_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\landing | landing_page_appointments_spec.rb | Fri Dec 7 13:25:56 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 4 | 266 |
| Changed | 3 | 6 |
| 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/ app_option s_menu' | |
| 16 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 17 | require_re lative '.. /../common /cancel_ap pointment' | |
| 18 | require_re lative '.. /../module /database/ OracleUtil ity' | |
| 19 | require_re lative '.. /../module /DateUtili ty' | |
| 20 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 21 | require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest' | |
| 22 | require_re lative '.. /../pages/ appointmen ts/booked_ appointmen t_detail' | |
| 23 | ||
| 24 | describe ' [Story# VA R-1752: La nding Page - Booked Appointmen ts View] | |
| 25 | [Story# VA R-2339: Up date Landi ng Page an d related Menu] | |
| 26 | [Story# VA R-3613: La nding PAge - Appoint ment List - Add Faci lity] | |
| 27 | [STORY# VA R-11872: A ppointment List: VA Facility A ppointment – update format]' do | |
| 28 | include DriverUtil ity | |
| 29 | include OracleUtil ity | |
| 30 | include DateUtilit y | |
| 31 | include MongoUtili ty | |
| 32 | ||
| 33 | before(: all) do | |
| 34 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 35 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 36 | @login = Login.n ew(@driver ) | |
| 37 | @eula = Eula.new (@driver) | |
| 38 | @commo n = Common .new(@driv er) | |
| 39 | @app_m enu = AppO ptionsMenu .new(@driv er) | |
| 40 | @new_a ppointment = NewAppo intmentReq uest.new(@ driver) | |
| 41 | @detai l = Booked Appointmen tDetail.ne w(@driver) | |
| 42 | APPOIN TMENTS = " Appointmen ts/Request s" | |
| 43 | ||
| 44 | @tomor row = getD ateNthDays FromNow(1, "%m/%d/%Y @ 09:00") | |
| 45 | @twoDa ysLater = getDateNth DaysFromNo w(2, "%m/% d/%Y @ 09: 00") | |
| 46 | @seven DaysLater = getDateN thDaysFrom Now(7, "%m /%d/%Y") | |
| 47 | @thirt yDaysLater = getDate NthDaysFro mNow(30, " %m/%d/%Y @ 09:00") | |
| 48 | @thirt yOneDaysLa ter = getD ateNthDays FromNow(31 , "%m/%d/% Y @ 09:00" ) | |
| 49 | #cance l existing appointme nt | |
| 50 | @cancel_ap pointment = CancelAp pointment. new("CLINI C_BASED_BO STON", "52 3","#{ pw_reda c t e d ['userid'] }") | |
| 51 | @cance l_appointm ent.update _appointme nt_obj("ap pointmentT ime", "#{@ sevenDaysL ater} 10:0 0:00") | |
| 52 | @cance l_appointm ent.cancel _appointme nt() | |
| 53 | @db = connectToM ongoDB("va r-utility" ) | |
| 54 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db ) | |
| 55 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 56 | restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "direct Scheduling Enabled.js on", @db) | |
| 57 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db) | |
| 58 | restor eCollectio n("custom- friendly-t ext", "var -utility", "facility _friendly_ name.json" , @db) | |
| 59 | @common.lo ginEndsOnH ome( pw_reda c t e d ) | |
| 60 | @landi ng_appoint ments.prim ary_header _element.w hen_presen t(TIME_OUT _LIMIT) | |
| 61 | @@time Slot = "10 :00" | |
| 62 | @frien dly_name = "Facility Friendly Text" | |
| 63 | @clini c_friendly _name ="JP PRIMARY C ARE DR. CR EAMER" | |
| 64 | @locat ion = "BOS TON HCS VA MC" | |
| 65 | @clini c = PRIMAR Y_CARE.upc ase.strip | |
| 66 | end | |
| 67 | ||
| 68 | after(:a ll) do | |
| 69 | @drive r.close | |
| 70 | end | |
| 71 | ||
| 72 | context '[AC#VAR-1 807|TC#VAR -1936: Lan ding Page - Booked A ppointment View Crit eria] | |
| 73 | [AC#VAR-2 761|TC#VAR -2764: Upd ate Landin g Page and related m enu criter ia] | |
| 74 | [AC#VAR-3 706|TC#VAR -3705: Lan ding Page - add faci lity crite ria] | |
| 75 | [AC#VAR-1 1993|TC#VA R-11994: A ppointment List: VA Facility A ppointment – update format]' do | |
| 76 | it "Se ction/tabl e title: A ppointment s" do | |
| 77 | ||
| 78 | expe ct(@landin g_appointm ents.prima ry_header) .to eq(APP OINTMENTS) | |
| 79 | expe ct(@landin g_appointm ents.appoi ntment_hea der).to eq ("Appointm ents") | |
| 80 | ||
| 81 | end | |
| 82 | ||
| 83 | it "Co lumn 1 - D ate/Time" do | |
| 84 | @com mon.select AddAppoint mentButton ("VA") | |
| 85 | @@cc _enabled = @common.c cEnabled | |
| 86 | @new _appointme nt.createA ppointment (PRIMARY_C ARE, '523' , '32', 't est', @sev enDaysLate r, @@timeS lot, 'test Automation @testAutom ationxyz.c om') | |
| 87 | @@se tDate = Ne wAppointme ntRequest. bookedDate | |
| 88 | @@se lectedSlot = @@setDa te | |
| 89 | butt on_element = @driver .button(:i d => 'back -btn') | |
| 90 | @dri ver.execut e_script(" $(argument s[0]).clic k();",butt on_element ) | |
| 91 | @com mon.waitWh ileSpinner Present | |
| 92 | @lan ding_appoi ntments.re fresh | |
| 93 | @com mon.waitWh ileSpinner Present | |
| 94 | slee p 2 | |
| 95 | @lan ding_appoi ntments.ap pointment_ header_ele ment.when_ present(TI ME_OUT_LIM IT) | |
| 96 | Wati r::Wait.un til {@land ing_appoin tments.app ointment_t able_list_ elements.l ength >= 1 } | |
| 97 | expe ct(@landin g_appointm ents.getNt hAppointme ntTableHea der(1)).to eq("Date/ Time") | |
| 98 | ||
| 99 | end | |
| 100 | ||
| 101 | it "Co lumn 2 - D etails" do | |
| 102 | expe ct(@landin g_appointm ents.getNt hAppointme ntTableHea der(2)).to eq("Detai ls") | |
| 103 | end | |
| 104 | ||
| 105 | it "Co lumn 3 - P repair/Joi n" do | |
| 106 | expe ct(@landin g_appointm ents.getNt hAppointme ntTableHea der(3)).to eq("Prepa re/Join") | |
| 107 | ||
| 108 | end | |
| 109 | ||
| 110 | it "Co lumn 4 - D isplay a > icon " do | |
| 111 | expe ct(@landin g_appointm ents.first _appointme nt_element .attribute ('class')) .to includ e("ui-btn- icon-right ") | |
| 112 | expe ct(@landin g_appointm ents.appoi ntment_tab le_list_el ements[1]. text).to i nclude("Vi ew details for your appointmen t,\nDate/T ime:\n") | |
| 113 | end | |
| 114 | ||
| 115 | it "sh ould verif y appointm ent list l oads with minified v ersion of code" do | |
| 116 | @common.lo goutAndLog backWithAD ifferentUs er( pw_reda c t e d ) | |
| 117 | @lan ding_appoi ntments.pr imary_head er_element .when_pres ent(TIME_O UT_LIMIT) | |
| 118 | @@se lectedDay = getDayof Week(@@sel ectedSlot) | |
| 119 | @@ti meSlot = @ @timeSlot. gsub!(':', '') | |
| 120 | all_ appointmen ts = @land ing_appoin tments.lis t_of_appoi ntments_el ements | |
| 121 | appo intment_to _verify = "View deta ils for yo ur appoint ment," + " \n" + "Dat e/Time:" + "\n" + "# {@@selecte dDay}," + " #{@@setD ate}" + "\ n" + "#{@@ timeSlot}" + "\n" + "#{@@selec tedDay}, # {@@setDate } #{@@time Slot.gsub( "", " ")}" + "\n" + "Details:" + "\n" + "VA Facili ty Appoint ment" + "\ n" +"#{@lo cation}" + "\n" + "# {@clinic_f riendly_na me}" + "\n " + "Also called: #{ @clinic}" + "\n" + " Prepare/Jo in:" + "\n " +"Prepar e for your appointme nt" | |
| 122 | expe ct(@landin g_appointm ents.verif yAppointme ntDetailsI nList(all_ appointmen ts, appoin tment_to_v erify)).to eq(true) | |
| 123 | end | |
| 124 | end | |
| 125 | end | |
| 126 | ||
| 127 | ||
| 128 | ||
| 129 | ||
| 130 | ||
| 131 | ||
| 132 | ||
| 133 | ||
| 134 | ||
| 135 | ||
| 136 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.