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 | Learn_More_Laboratory_Accordions_DCKDA_770_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 | Learn_More_Laboratory_Accordions_DCKDA_770_spec.rb | Tue May 29 15:58:16 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 274 |
| 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 | ||
| 21 | describe ' Story#DCKD A-770 Lear n_More_Lab oratory_Ac cordions_D CKDA_770_s pec.rb', : regression => true d o | |
| 22 | include DriverOper ationsModu le | |
| 23 | ||
| 24 | accd_hea der = "Lab oratory" | |
| 25 | ||
| 26 | before(: all) do | |
| 27 | ||
| 28 | initia lizeConfig urations() | |
| 29 | ||
| 30 | @commo nElements = CommonEl ement.new( @driver) | |
| 31 | @login page = Log inPage.new (@driver) | |
| 32 | @eula = Eula.new (@driver) | |
| 33 | @landi ng = Landi ngPage.new (@driver) | |
| 34 | @roa = Roa.new(@ driver) | |
| 35 | @leftn av = LeftS ideNav.new (@driver) | |
| 36 | @lp = Launchpad. new(@drive r) | |
| 37 | @commo nTest = Co mmonTest.n ew(@driver ) | |
| 38 | @modal = Modal.n ew(@driver ) | |
| 39 | ||
| 40 | @commonTes t.passByLa ndingPageA ndAuthenti cate(" AI ", " AI ", "patien t01, zztes t", "D1234 01") | |
| 41 | begin | |
| 42 | Wati r::Wait.un til | |
| 43 | @com monElement s.angulart itle_eleme nt.visible ? | |
| 44 | rescue | |
| 45 | Wati r::Wait::T imeoutErro r | |
| 46 | unti l | |
| 47 | @com monElement s.angulart itle_eleme nt.visible ? | |
| 48 | end | |
| 49 | end | |
| 50 | ||
| 51 | end | |
| 52 | ||
| 53 | after(:a ll) do | |
| 54 | @drive r.close | |
| 55 | end | |
| 56 | ||
| 57 | dataShee tFilePath = File.dir name(__FIL E__) + '/. ./../datas heet/Accor dions_Test .xls' | |
| 58 | book = S preadsheet .open data SheetFileP ath | |
| 59 | sheet1 = book.work sheet 'lab oratoryAcc ordions' | |
| 60 | ||
| 61 | counter = 0 | |
| 62 | preSubFe ature = " " | |
| 63 | sheet1.e ach 1 do | row| | |
| 64 | counte r = counte r + 1 | |
| 65 | ||
| 66 | if row [1].includ e?("Return to") == f alse | |
| 67 | temp Arry = row [1].split( ">") | |
| 68 | ||
| 69 | navF irstStop = tempArry[ 0] | |
| 70 | navS econdStop = tempArry [1] | |
| 71 | navA ccdSeq = t empArry[2] .to_i | |
| 72 | ||
| 73 | expe ctedAccdTi tle = row[ 2] | |
| 74 | ||
| 75 | cont ext 'AC#DC KDA-771|TC #DCKDA-451 : Accordio n display for Labora tory - ' + expectedA ccdTitle d o | |
| 76 | it '. Naviga te to the right acco rdion, the n verify t he heading displays correctly. ' do | |
| 77 | if navSeco ndStop != preSubFeat ure | |
| 78 | ||
| 79 | @commonT est.naviga teToAsubFe ature(navF irstStop, navSecondS top) | |
| 80 | if count er == 1 | |
| 81 | expect (@commonEl ements.pri maryHeader ).to eq(ac cd_header) | |
| 82 | end | |
| 83 | ||
| 84 | preSubFe ature = na vSecondSto p | |
| 85 | end | |
| 86 | ||
| 87 | expect(@le ftnav.getA ccordionTi tle(navAcc dSeq)).to eq(expecte dAccdTitle ) | |
| 88 | expect(@le ftnav.getA ccordionEx pandedStat us(navAccd Seq)).to e q(false) | |
| 89 | expect(@le ftnav.getA ccordionAl tText(navA ccdSeq)).t o eq("Expa nd") | |
| 90 | en d | |
| 91 | ||
| 92 | it '. Click the accord ion, verif y the acco rdion is e xpanded an d the alt text reads Collapse' do | |
| 93 | @leftnav.c lickAccord ion(navAcc dSeq) | |
| 94 | sleep 0.5 | |
| 95 | expect(@le ftnav.getA ccordionEx pandedStat us(navAccd Seq)).to e q(true) | |
| 96 | expect(@le ftnav.getA ccordionAl tText(navA ccdSeq)).t o eq("Coll apse") | |
| 97 | en d | |
| 98 | end | |
| 99 | ||
| 100 | cont ext 'AC#DC KDA-772|TC #DCKDA-451 : Accordio n Behavior - ' + exp ectedAccdT itle do | |
| 101 | it '. Verify that when expand an accordion , it autom atically c loses othe r accordio ns' do | |
| 102 | if expecte dAccdTitle != "Learn More" | |
| 103 | newNum = navAccdSe q + 1 | |
| 104 | else | |
| 105 | newNum = navAccdSe q - 1 | |
| 106 | end | |
| 107 | ||
| 108 | @leftnav.c lickAccord ion(newNum ) | |
| 109 | sleep 0.5 | |
| 110 | expect(@le ftnav.getA ccordionEx pandedStat us(navAccd Seq)).to e q(false) | |
| 111 | ||
| 112 | expect(@le ftnav.getA ccordionAl tText(navA ccdSeq)).t o eq("Expa nd") | |
| 113 | ||
| 114 | @leftnav.c lickAccord ion(newNum ) | |
| 115 | sleep 0.5 | |
| 116 | en d | |
| 117 | end | |
| 118 | ||
| 119 | else | |
| 120 | altT extPreScre en = row[1 ] | |
| 121 | ||
| 122 | cont ext 'AC#DC KDA-771|TC #DCKDA-451 In Phone form facto r, the > b utton is p resent and has the c orrect alt text ' do | |
| 123 | it '. Verify the in Ph one form f actor, the > button is present and has t he correct alt text ' do | |
| 124 | if row[1]. include?(" Return to" ) | |
| 125 | ||
| 126 | resizeWi ndowTo(320 , 480) | |
| 127 | @commonE lements.re turnToPrev Screen_ele ment.when_ visible(ti meout=10) | |
| 128 | expect(@ commonElem ents.retur nToPrevScr een?).to e q(true) | |
| 129 | expect(@ commonElem ents.retur nToPrevScr een_elemen t.attribut e("title") ).to eq(al tTextPreSc reen) | |
| 130 | ||
| 131 | resizeWi ndowToDefa ult() | |
| 132 | end | |
| 133 | en d | |
| 134 | end | |
| 135 | end | |
| 136 | ||
| 137 | end | |
| 138 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.