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 | feature_flag_pact_team_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 | feature_flag_pact_team_spec.rb | Fri Dec 7 13:25:48 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 262 |
| Changed | 2 | 4 |
| 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 '.. /../common /cancel_ap pointment' | |
| 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 '.. /../module /database/ MongoUtili ty' | |
| 23 | require_re lative '.. /../pages/ landing_no tification s' | |
| 24 | ||
| 25 | ||
| 26 | describe ' [Story# VA R-12537: L ocation li st selecti on: Indica te which l ocations h ave the pa tients PAC T clinics] | |
| 27 | [Story# VA R-12800: F eature Fla g for PACT Team]' 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 | @landi ng_notific ations = L andingNoti fications. new(@drive r) | |
| 45 | TITLE = "Appoint ments/Requ ests" | |
| 46 | @tomor row = getD ateNthDays FromNow(1, "%m/%d/%Y ") | |
| 47 | @seven DaysFromNo w = getDat eNthDaysFr omNow(7, " %m/%d/%Y") | |
| 48 | @ninty DaysLater = getDateN thDaysFrom Now(90, "% m/%d/%Y") | |
| 49 | @@time Slot = "11 :00" | |
| 50 | @@pati entID ="11 13138327" | |
| 51 | #cance l appointm ent | |
| 52 | ||
| 53 | @cancel_ap pointment = CancelAp pointment. new("CLINI C_BASED_BO STON", "52 3","#{ pw_reda c t e d ['userid'] }") | |
| 54 | @cance l_appointm ent.update _appointme nt_obj("ap pointmentT ime", "#{@ sevenDaysF romNow} 11 :00:00") | |
| 55 | @cance l_appointm ent.cancel _appointme nt() | |
| 56 | ||
| 57 | #mongo | |
| 58 | @db = connectToM ongoDB("va r-utility" ) | |
| 59 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db ) | |
| 60 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 61 | restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "direct Scheduling Enabled.js on", @db) | |
| 62 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db) | |
| 63 | restor eCollectio n("custom- friendly-t ext", "var -utility", "facility _friendly_ name.json" , @db) | |
| 64 | delete PatientDat a(@@patien tID) | |
| 65 | @common.lo ginEndsOnH ome( pw_reda c t e d ) | |
| 66 | @commo n.selectAd dAppointme ntButton(" VA") | |
| 67 | end | |
| 68 | ||
| 69 | after(:a ll) do | |
| 70 | @dri ver.close | |
| 71 | end | |
| 72 | ||
| 73 | contex t 'AC#VAR- 13173|TC#V AR-13219: Location B ooking - I ndicate wh ich locati ons have t he patient s PACT cli nics' do | |
| 74 | it ' No "Your p rimary Car e Team" te xt display in case o f a single facility' do | |
| 75 | @n ew_appoint ment.selec tTypeOfCar e(PRIMARY_ CARE) | |
| 76 | @n ew_appoint ment.selec tState("63 6") | |
| 77 | ex pect(@new_ appointmen t.single_l ocation_el ement).eql ?("Omaha V A Medical Center (Om aha, NE)") | |
| 78 | end | |
| 79 | ||
| 80 | it ' verify it display "P ACT team" link in ca se of a si ngle facil ity' do | |
| 81 | @n ew_appoint ment.view_ pact_team_ element.wh en_present (TIME_OUT_ LIMIT) | |
| 82 | @n ew_appoint ment.view_ pact_team_ element.cl ick | |
| 83 | @m odal.modal Title_elem ent.wait_u ntil_prese nt(TIME_OU T_LIMIT) | |
| 84 | ex pect(@moda l.modalTit le_element .text).to eq "PACT M embers" | |
| 85 | ex pected_con tent =[\ | |
| 86 | "Primary C are Provid ers:", | |
| 87 | "Stephen S trange", | |
| 88 | "Team List :" | |
| 89 | ] | |
| 90 | ||
| 91 | ac tual_conte nt = @moda l.content_ element.te xt.split(" \n") | |
| 92 | ||
| 93 | co mpareConte nts( expec ted_conten t, actual_ content) | |
| 94 | end | |
| 95 | ||
| 96 | it ' should dis play "Your primary C are Team" text' do | |
| 97 | @m odal.butto ns_element s[0].click | |
| 98 | @n ew_appoint ment.selec tTypeOfCar e(PRIMARY_ CARE) | |
| 99 | @n ew_appoint ment.selec tState("52 3") | |
| 100 | @n ew_appoint ment.selec tLocation( "523") | |
| 101 | ex pect (@new _appointme nt.locatio n_element. selected_o ptions[0]) .eql?("BOS TON HCS VA MC (BOSTON , MA) - Yo ur Primary Care Team ") | |
| 102 | end | |
| 103 | ||
| 104 | it ' verify "PA CT team" l ink' do | |
| 105 | @n ew_appoint ment.view_ pact_team_ element.wh en_present (TIME_OUT_ LIMIT) | |
| 106 | @n ew_appoint ment.view_ pact_team_ element.cl ick | |
| 107 | @m odal.modal Title_elem ent.wait_u ntil_prese nt(TIME_OU T_LIMIT) | |
| 108 | ex pect(@moda l.modalTit le_element .text).to eq "PACT M embers" | |
| 109 | ex pected_con tent =[\ | |
| 110 | "Primary Care Prov iders:", | |
| 111 | "Creamer , Kent", | |
| 112 | "Team Li st:", | |
| 113 | "Gomez, Shane; McC ormack, As ia; Parker , Corinna; Perry, Ma ry; Tate, Vickie" | |
| 114 | ] | |
| 115 | ||
| 116 | ac tual_conte nt = @moda l.content_ element.te xt.split(" \n") | |
| 117 | ||
| 118 | co mpareConte nts( expec ted_conten t, actual_ content) | |
| 119 | end | |
| 120 | ||
| 121 | it " Verify use r can succ essfully s chedule an appointme nt" do | |
| 122 | @m odal.butto ns_element s[0].click | |
| 123 | @n ew_appoint ment.selec tSchedulin gMethod("d irect") | |
| 124 | @n ew_appoint ment.selec tClinic("3 2") | |
| 125 | @n ew_appoint ment.provi deReasonFo rAppointme nt("schedu le appoint ment with PACT Team" ) | |
| 126 | @n ew_appoint ment.selec tPreferedD ate(@seven DaysFromNo w, @@timeS lot) | |
| 127 | @n ew_appoint ment.enter Email("tes tPC@test.c om") | |
| 128 | @n ew_appoint ment.click ScheduleAp pointment | |
| 129 | @d etail.appo intment_de tails_grou p_element. when_prese nt(TIME_OU T_LIMIT) | |
| 130 | ex pect(@deta il.primary _header).t o eq("Appo intment De tails") | |
| 131 | end | |
| 132 | end | |
| 133 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.