This repository has been archived by the owner on Mar 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathwebtest.txt
59 lines (49 loc) · 1.9 KB
/
webtest.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
DateTime Picker Test On Browser
To Run this, run $ `npm start`first to start the web server with port 9002
START
open browser
go to http://localhost:9002
TEST2
click "#test2 input"
click "#test2 div.month b.prev_next.prev"
verify element "#test2 div.day[title='2016-1-20']" without class selectable
click "#test2 div.month b.prev_next.next"
verify element "#test2 div.day[title='2017-1-10']" without class selectable
verify element "#test2 div.day[title='2017-1-20']" without class selectable
click "#test2 div.month b.prev_next.next"
verify element "#test2 div.day[title='2018-1-20']" without class selectable
click "#test2 div.month b.prev_next.prev"
click "#test2 div.day.selectable[title='2017-1-25']"
verify element "#test2 input" value is "2017-01-25"
click "#test2 #set-date"
verify element "#test2 input" value is "2017-12-31"
TEST3
click "#test3 input"
verify element "#test3 .month" is not present
verify element "#test3 .days" is not present
verify element "#test3 .time" is visible
TEST4
verify element "#test4 input" value matches "15/01/2017 15:22 [+-]"
click "#test4 input"
click "#test4 div.day.selectable[title='2017-1-25']"
verify element "#test4 input" value matches "25/01/2017"
TEST5
verify element "#test5 input" value is "2016-02-15"
see "2015-12-31"
click
verify element "#test5 input" value is "2015-12-31"
click "#test5 input"
click "#test5 div.day.selectable[title='2015-12-30']"
set element "#test5 input.hourInput" value 11
set element "#test5 input.minutesInput" value as 19
click body
verify element "#test5 input" value is "2015-12-30 11:19"
TEST6
verify element "#test6 input" value is "2017-01-28"
click "#test6 input"
click "#test6 div.month b.prev_next.prev.month"
click "#test6 div.month b.prev_next.next.month"
click "#test6 div.close-button"
verify element "#test6 input" value is "2017-01-28"
END
close browser