Produced by Araxis Merge on 5/29/2018 12:14:36 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\notifications | Landing_Notification_Count_DCKDA_1158_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\notifications | Landing_Notification_Count_DCKDA_1158_spec.rb | Tue May 29 16:05:49 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 162 |
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 | ||
8 | require_re lative '.. /rspec_hel per' | |
9 | require_re lative '.. /../lib/pa ges/left_s ide_nav' | |
10 | require_re lative '.. /../lib/pa ges/common _elements' | |
11 | require_re lative '.. /../lib/pa ges/common _tests' | |
12 | require_re lative '.. /../lib/pa ges/landin g_page' | |
13 | require_re lative '.. /../lib/mo dule/Mongo Operations Module' | |
14 | ||
15 | describe ' Story#DCKD A-1158, La nding_Noti fication_C ount_DCKDA _1158_spec .rb', :reg ression => true do | |
16 | include DriverOper ationsModu le | |
17 | include MongoOpera tionsModul e | |
18 | ||
19 | before(: all) do | |
20 | ||
21 | initia lizeConfig urations() | |
22 | resetC ollection( "notificat ionPrefere nces", "no tification sdb", "spe c/mongoDBD ata/notifi cation/not ificationP references .bson") | |
23 | resetC ollection( "preferenc es", "noti ficationsd b", "spec/ mongoDBDat a/notifica tion/prefe rences.bso n") | |
24 | ||
25 | remove Collection ("notifica tions", "n otificatio nsdb") | |
26 | ||
27 | insert Notificati on("Your M edication Reminders goal is du e on KIDNE Y") | |
28 | insert Notificati on("Anothe r reminder ") | |
29 | insert Notificati on("Re: mi nd") | |
30 | insert Notificati on("Expire d", Time.n ew(2000)) | |
31 | ||
32 | @commo nElements = CommonEl ement.new( @driver) | |
33 | @commo nTest = Co mmonTest.n ew(@driver ) | |
34 | @landi ng = Landi ngPage.new (@driver) | |
35 | @commonTes t.passByLa ndingPageA ndAuthenti cate(" AI ", " AI ", "patien t13, zztes t", "PATID 12") | |
36 | begin | |
37 | Wati r::Wait.un til | |
38 | @com monElement s.angulart itle_eleme nt.visible ? | |
39 | rescue | |
40 | Wati r::Wait::T imeoutErro r | |
41 | unti l | |
42 | @com monElement s.angulart itle_eleme nt.visible ? | |
43 | end | |
44 | end | |
45 | ||
46 | @commo nTest.wait ForContent Loaded | |
47 | @commo nElements. contentLoa ded_elemen t.when_pre sent(timeo ut=15) | |
48 | ||
49 | end | |
50 | ||
51 | after(:a ll) do | |
52 | @drive r.close | |
53 | end | |
54 | ||
55 | context 'AC#DCKDA- 494|TC#DCK DA-547: No tification Count-Dis play Unrea d Notifica tions' do | |
56 | it '. Verify the count dis plays' do | |
57 | expe ct(@landin g.unreadNo tification s).to eq(" 3 Unread i n last 30 days") | |
58 | end | |
59 | ||
60 | it ' . Verify th at a bell icon is on the page' do | |
61 | expe ct(@landin g.hasUnrea dNotificat ionsIcon() ) | |
62 | end | |
63 | end | |
64 | ||
65 | end | |
66 | ||
67 | def insert Notificati on(body, c reateDate = Time.now ) | |
68 | notifica tion = { | |
69 | "patie ntIdentifi er" => { | |
70 | "u niqueId" = > "PATID12 ", | |
71 | "a ssigningAu thority" = > "EDIPI" | |
72 | }, | |
73 | "readF lag" => fa lse, | |
74 | "sourc e" => "Mob ileKidney - Kidney T rackers", | |
75 | "type" => "Mobil e-Kidney", | |
76 | "timeZ one" => "A merica/New _York" | |
77 | } | |
78 | notifica tion["body "] = body | |
79 | notifica tion["crea teDate"] = createDat e | |
80 | notifica tion["effe ctiveDispl ayDate"] = Time.now | |
81 | insertDo cument("no tification s", "notif icationsdb ", notific ation) | |
82 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.