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\common_fucntionality | cancel_new_appointment_request_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\common_fucntionality | cancel_new_appointment_request_spec.rb | Fri Dec 7 13:25:52 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 232 |
| 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 | ||
| 9 | require_re lative '.. /../module /DriverUti lity' | |
| 10 | require_re lative '.. /rspec_hel per' | |
| 11 | require_re lative '.. /../common /common' | |
| 12 | require_re lative '.. /../pages/ appointmen ts/new_app ointment_r equest' | |
| 13 | require_re lative '.. /../helper /modal' | |
| 14 | require_re lative '.. /../module /database/ OracleUtil ity' | |
| 15 | require_re lative '.. /../module /DateUtili ty' | |
| 16 | require_re lative '.. /../module /database/ MongoUtili ty' | |
| 17 | require_re lative '.. /../pages/ landing_ap pointments ' | |
| 18 | require_re lative '.. /../pages/ landing_no tification s' | |
| 19 | ||
| 20 | describe ' [Story# VA R-10107: N ew appoint ment/reque st - Cance l button]' do | |
| 21 | ||
| 22 | include DriverUtil ity | |
| 23 | include OracleUtil ity | |
| 24 | include DateUtilit y | |
| 25 | include MongoUtili ty | |
| 26 | ||
| 27 | ||
| 28 | before(: all) do | |
| 29 | initia lizeConfig urations(V AR_BASE_UR L) | |
| 30 | @commo n = Common .new(@driv er) | |
| 31 | @modal = Modal.n ew(@driver ) | |
| 32 | @new_a ppointment = NewAppo intmentReq uest.new(@ driver) | |
| 33 | @landi ng_notific ations = L andingNoti fications. new(@drive r) | |
| 34 | @landi ng_appoint ments = La ndingAppoi ntments.ne w(@driver) | |
| 35 | @modal = Modal.n ew(@driver ) | |
| 36 | TITLE = "Appoint ments/Requ ests" | |
| 37 | @db = connectToM ongoDB("va r-utility" ) | |
| 38 | restor eCollectio n("siteSup portingVAR ", "var-ut ility", "s ites-suppo rting-var- exported2. json", @db ) | |
| 39 | restor eCollectio n("clinica l-services ", "var-ut ility", "c linical_se rvices_def ault.json" , @db) | |
| 40 | restor eCollectio n("request Eligibilit yCriteria" , "var-uti lity", "re questEligi bilityCrit eria.json" , @db) | |
| 41 | restor eCollectio n("directB ookingElig ibilityCri teria", "v ar-utility ", "direct Scheduling Enabled.js on", @db) | |
| 42 | restor eCollectio n("custom- friendly-t ext", "var -utility", "facility _friendly_ name.json" , @db) | |
| 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 | end | |
| 46 | ||
| 47 | after(:a ll) do | |
| 48 | @drive r.close | |
| 49 | end | |
| 50 | ||
| 51 | context 'AC#VAR-10 177|TC#VAR -10178: Ne w appointm ent/reques t - Cancel button' d o | |
| 52 | ||
| 53 | it 'sh ould displ ay a modal when a us er is comp leting a n ew request ' do | |
| 54 | @com mon.select AddAppoint mentButton ("VA") | |
| 55 | @new _appointme nt.selectN ewAppointm entAndSche dule(PRIMA RY_CARE, " 523", "523 ", "clerk" ) | |
| 56 | ||
| 57 | #Con firmation Modal is d isplayed w hen cancel button is selected | |
| 58 | @new _appointme nt.cancel_ element.wa it_until_p resent(TIM E_OUT_LIMI T) | |
| 59 | @new _appointme nt.cancel_ element.cl ick | |
| 60 | @mod al.modalTi tle_elemen t.wait_unt il_present (TIME_OUT_ LIMIT) | |
| 61 | expe ct(@modal. modalTitle _element.t ext).to eq "Cancel C onfirmatio n" | |
| 62 | expe ct(@modal. content_el ement.text ).to eq "A re you sur e you want to cancel this requ est?" | |
| 63 | ||
| 64 | end | |
| 65 | ||
| 66 | it "sh ould retur n to form when no is selected for cancel " do | |
| 67 | #Whe n No is se lected, us er is retu rned to th e form | |
| 68 | @mod al.buttons _elements[ 1].click | |
| 69 | @new _appointme nt.type_of _care_elem ent.wait_u ntil_prese nt(TIME_OU T_LIMIT) | |
| 70 | expe ct(@new_ap pointment. schedule_a ppointment _element.t ext).to eq ("Submit R equest") | |
| 71 | ||
| 72 | end | |
| 73 | ||
| 74 | it "sh ould cance l form whe n yes is s elected fo r cancel" do | |
| 75 | #Whe n Yes is s elected, u ser is ret urned to t he main pa ge | |
| 76 | @new _appointme nt.cancel_ element.wa it_until_p resent(TIM E_OUT_LIMI T) | |
| 77 | @new _appointme nt.cancel_ element.cl ick | |
| 78 | @mod al.buttons _elements[ 0].click | |
| 79 | @lan ding_appoi ntments.ap pointment_ header_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT) | |
| 80 | expe ct(@landin g_appointm ents.appoi ntment_hea der).to eq ("Appointm ents") | |
| 81 | end | |
| 82 | ||
| 83 | it 'sh ould displ ay a modal when a us er is comp leting a n ew appoint ment' do | |
| 84 | @com mon.select AddAppoint mentButton ("VA") | |
| 85 | @new _appointme nt.selectN ewAppointm entAndSche dule(PRIMA RY_CARE, " 523", "523 ", "direct ") | |
| 86 | ||
| 87 | #Con firmation Modal is d isplayed w hen cancel button is selected | |
| 88 | @new _appointme nt.mutiple _clinics_e lement.wai t_until_pr esent(TIME _OUT_LIMIT ) | |
| 89 | @new _appointme nt.cancel_ element.wa it_until_p resent(TIM E_OUT_LIMI T) | |
| 90 | @new _appointme nt.cancel_ element.cl ick | |
| 91 | @mod al.modalTi tle_elemen t.wait_unt il_present (TIME_OUT_ LIMIT) | |
| 92 | expe ct(@modal. modalTitle _element.t ext).to eq "Cancel C onfirmatio n" | |
| 93 | expe ct(@modal. content_el ement.text ).to eq "A re you sur e you want to cancel schedulin g this app ointment?" | |
| 94 | ||
| 95 | end | |
| 96 | ||
| 97 | it "sh ould retur n to form when no is selected for cancel " do | |
| 98 | #Whe n No is se lected, us er is retu rned to th e form | |
| 99 | @mod al.buttons _elements[ 1].click | |
| 100 | @new _appointme nt.type_of _care_elem ent.wait_u ntil_prese nt(TIME_OU T_LIMIT) | |
| 101 | expe ct(@new_ap pointment. appointmen t_details_ legend).to eq("Appoi ntment Det ails") | |
| 102 | end | |
| 103 | ||
| 104 | it "sh ould cance l form whe n yes is s elected fo r cancel" do | |
| 105 | ||
| 106 | #Whe n Yes is s elected, u ser is ret urned to t he main pa ge | |
| 107 | @new _appointme nt.cancel_ element.wa it_until_p resent(TIM E_OUT_LIMI T) | |
| 108 | @new _appointme nt.cancel_ element.cl ick | |
| 109 | @mod al.modalTi tle_elemen t.wait_unt il_present (TIME_OUT_ LIMIT) | |
| 110 | @mod al.buttons _elements[ 0].click | |
| 111 | @lan ding_appoi ntments.ap pointment_ header_ele ment.wait_ until_pres ent(TIME_O UT_LIMIT) | |
| 112 | expe ct(@landin g_appointm ents.appoi ntment_hea der).to eq ("Appointm ents") | |
| 113 | end | |
| 114 | ||
| 115 | end | |
| 116 | ||
| 117 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.