Produced by Araxis Merge on 5/29/2018 12:14:35 PM Central Daylight 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 | mobile-kidney-web-2.0.0.zip\mobile-kidney-web\acceptance_test\watir\spec\learn-more | SWS_Learn_More_Content_DCKDA_936_spec.rb | Wed Apr 4 20:16:46 2018 UTC |
| 2 | mobile-kidney-web-2.0.0.zip\mobile-kidney-web\acceptance_test\watir\spec\learn-more | SWS_Learn_More_Content_DCKDA_936_spec.rb | Tue May 29 16:01:29 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 238 |
| 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 | ||
| 4 | require 'r ubygems' | |
| 5 | require 'r spec' | |
| 6 | require 'w atir-webdr iver' | |
| 7 | require 'p age-object ' | |
| 8 | require 's preadsheet ' | |
| 9 | ||
| 10 | require_re lative '.. /rspec_hel per' | |
| 11 | require_re lative '.. /../lib/pa ges/login_ page' | |
| 12 | require_re lative '.. /../lib/pa ges/eula' | |
| 13 | require_re lative '.. /../lib/pa ges/landin g_page' | |
| 14 | require_re lative '.. /../lib/pa ges/roa' | |
| 15 | require_re lative '.. /../lib/pa ges/launch pad' | |
| 16 | require_re lative '.. /../lib/pa ges/common _elements' | |
| 17 | require_re lative '.. /../lib/pa ges/common _tests' | |
| 18 | require_re lative '.. /../lib/pa ges/modal_ dialog' | |
| 19 | require_re lative '.. /../lib/pa ges/left_s ide_nav' | |
| 20 | require_re lative '.. /../lib/pa ges/learn_ more_accor dions' | |
| 21 | ||
| 22 | describe ' Story#DCKD A-936 SWS_ Learn_More _Content_D CKDA_936_s pec.rb', : regression => true d o | |
| 23 | include DriverOper ationsModu le | |
| 24 | ||
| 25 | idName = "social-w ork-servic es--learn- more-1" | |
| 26 | ||
| 27 | before(: all) do | |
| 28 | ||
| 29 | initia lizeConfig urations() | |
| 30 | ||
| 31 | @commo nElements = CommonEl ement.new( @driver) | |
| 32 | @login page = Log inPage.new (@driver) | |
| 33 | @eula = Eula.new (@driver) | |
| 34 | @landi ng = Landi ngPage.new (@driver) | |
| 35 | @roa = Roa.new(@ driver) | |
| 36 | @leftn av = LeftS ideNav.new (@driver) | |
| 37 | @lp = Launchpad. new(@drive r) | |
| 38 | @commo nTest = Co mmonTest.n ew(@driver ) | |
| 39 | @modal = Modal.n ew(@driver ) | |
| 40 | @lmAcc d = LearnM oreAccd.ne w(@driver) | |
| 41 | ||
| 42 | @commonTes t.passByLa ndingPageA ndAuthenti cate(" AI ", " AI ", "patien t01, zztes t", "D1234 01") | |
| 43 | begin | |
| 44 | Wati r::Wait.un til | |
| 45 | @com monElement s.angulart itle_eleme nt.visible ? | |
| 46 | rescue | |
| 47 | Wati r::Wait::T imeoutErro r | |
| 48 | unti l | |
| 49 | @com monElement s.angulart itle_eleme nt.visible ? | |
| 50 | end | |
| 51 | end | |
| 52 | ||
| 53 | @commo nTest.wait ForContent LoadedSumm aryPage | |
| 54 | @leftn av.leftSid eNav | |
| 55 | ||
| 56 | @commo nTest.navi gateToAsub Feature("L earnMore", ".social- work-servi ces") | |
| 57 | ||
| 58 | @leftn av.clickAc cordion(5) | |
| 59 | sleep 0.5 | |
| 60 | end | |
| 61 | ||
| 62 | after(:a ll) do | |
| 63 | @drive r.close | |
| 64 | end | |
| 65 | ||
| 66 | dataShee tFilePath = File.dir name(__FIL E__) + '/. ./../datas heet/Learn _More_Cont ent.xls' | |
| 67 | book = S preadsheet .open data SheetFileP ath | |
| 68 | sheet1 = book.work sheet 'sws LearnMore' | |
| 69 | ||
| 70 | counter = 0 | |
| 71 | sheet1.e ach 1 do | row| | |
| 72 | counte r = counte r + 1 | |
| 73 | ||
| 74 | rowLen gth = row. length | |
| 75 | ||
| 76 | topicS eqID = row [0].to_i | |
| 77 | expect edTopicTit le = row[2 ] | |
| 78 | expect edHyperLin k = row[3] | |
| 79 | openLi nk = row[4 ] | |
| 80 | ||
| 81 | contex t 'Story#D CKDA-|TC#D CKDA-: Ver ify the Re source top ic titile, hyper lin k display correctly. Clicking link opens the corre ct web pag e - ' + ex pectedTopi cTitle do | |
| 82 | ||
| 83 | if t opicSeqID == 1 | |
| 84 | it '. Verify that the text Resou rce displa ys ' do | |
| 85 | expect(@lm Accd.getRe sourceText (idName)). to eq("Res ources") | |
| 86 | en d | |
| 87 | end | |
| 88 | ||
| 89 | it ' . Verify t he resourc e title di splays cor rectly: ' do | |
| 90 | ex pect(@lmAc cd.getNthT opicTitle( idName, to picSeqID)) .to eq(exp ectedTopic Title) | |
| 91 | end | |
| 92 | ||
| 93 | it ' . Verify t hat the re source top ic has the correct h yper link. ' do | |
| 94 | ex pect(@lmAc cd.getNthT opicHyperL ink(idName , topicSeq ID)).to eq (expectedH yperLink) | |
| 95 | end | |
| 96 | ||
| 97 | it ' . Click th e topic an d verify i t opens up a page in the corre ct URL. ' do | |
| 98 | @l mAccd.clic kNthTopicH yperLink(i dName, top icSeqID) | |
| 99 | ||
| 100 | sw itchWindow ToWindowHa ndleLast() | |
| 101 | if getCurren tURL().inc lude?(open Link.split ("//")[1]) == false | |
| 102 | puts "Dis crepancy! Displayed URL=" + ge tCurrentUR L() | |
| 103 | en d | |
| 104 | ex pect(getCu rrentURL() .include?( openLink.s plit("//") [1])).to e q(true) | |
| 105 | ||
| 106 | @d river.driv er.close() | |
| 107 | ||
| 108 | sw itchWindow ToWindowHa ndleFirst( ) | |
| 109 | ||
| 110 | end | |
| 111 | end | |
| 112 | end | |
| 113 | ||
| 114 | contex t 'Story#D CKDA-933|T C#DCKDA-11 51: Verify the addit ional text a the bot tom of the accordion displays correctly. ' do | |
| 115 | it ' . Verify t he *Link t ext displa ys correct ly' do | |
| 116 | ex pect(@lmAc cd.getAddi tionalText (idName)). to eq("*Li nks will t ake you ou tside of t he Departm ent of Vet erans Affa irs websit e. VA does not endor se and is not respon sible for the conten t of the l inked webs ites.") | |
| 117 | end | |
| 118 | end | |
| 119 | ||
| 120 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.