Produced by Araxis Merge on 5/29/2018 12:14:34 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 | Nutrition_Learn_More_Content_DCKDA_931_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 | Nutrition_Learn_More_Content_DCKDA_931_spec.rb | Tue May 29 15:59:26 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-931 Nutr ition_Lear n_More_Con tent_DCKDA _931_spec. rb', :regr ession => true do | |
23 | include DriverOper ationsModu le | |
24 | ||
25 | idName = "nutritio n--learn-m ore-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", ".nutriti on") | |
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 'nut ritionLear nMore' | |
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 | ||
82 | contex t 'Story#D CKDA-932|T C#DCKDA-11 60: Verify the Resou rce topic titile, hy per link d isplay cor rectly. Cl icking lin k opens th e correct web page - ' + expec tedTopicTi tle do | |
83 | ||
84 | if t opicSeqID == 1 | |
85 | it '. Verify that the text Resou rce displa ys ' do | |
86 | expect(@lm Accd.getRe sourceText (idName)). to eq("Res ources") | |
87 | en d | |
88 | end | |
89 | ||
90 | it ' . Verify t he resourc e title di splays cor rectly: ' do | |
91 | ex pect(@lmAc cd.getNthT opicTitle( idName, to picSeqID)) .to eq(exp ectedTopic Title) | |
92 | end | |
93 | ||
94 | it ' . Verify t hat the re source top ic has the correct h yper link. ' do | |
95 | ex pect(@lmAc cd.getNthT opicHyperL ink(idName , topicSeq ID)).to eq (expectedH yperLink) | |
96 | end | |
97 | ||
98 | it ' . Click th e topic an d verify i t opens up a page in the corre ct URL. ' do | |
99 | @l mAccd.clic kNthTopicH yperLink(i dName, top icSeqID) | |
100 | ||
101 | sw itchWindow ToWindowHa ndleLast() | |
102 | if getCurren tURL().inc lude?(open Link.split ("//")[1]) == false | |
103 | puts "Dis crepancy! Displayed URL=" + ge tCurrentUR L() | |
104 | en d | |
105 | ex pect(getCu rrentURL() .include?( openLink.s plit("//") [1])).to e q(true) | |
106 | ||
107 | @d river.driv er.close() | |
108 | ||
109 | sw itchWindow ToWindowHa ndleFirst( ) | |
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.