summaryrefslogtreecommitdiffstats
path: root/uitest/integration-testscripts/common/portlet_test.tpl
blob: e4b83ef805a01f2ca2e47efbaec5cc751ec929d4 (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<tr>
	<td>waitForElementPresent</td>
	<td>//div[2]/div/div/div/span</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[2]/div/div/div/span</td>
	<td>Test of ApplicationResources with full path</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//body/div[2]/div//p</td>
	<td>exact:Mode: view State: normal</td>
</tr>
<tr>
	<td>screenCapture</td>
	<td></td>
	<td>initial</td>
</tr>
<tr>
	<td>closeNotification</td>
	<td>//body/div[2]/div</td>
	<td>0,0</td>
</tr>
<tr>
	<td>assertTextNotPresent</td>
	<td>Action * received</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[@class=&quot;v-link v-widget&quot;]/a/span</td>
	<td>Edit</td>
</tr>
<!--Send an action-->
<tr>
	<td>mouseClickAndWait</td>
	<td>//div[8]/div/a/span</td>
	<td>32,9</td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Action 'someAction' received</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>//body/div[2]/div//p</td>
	<td>exact:Mode: view State: normal</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[@class=&quot;v-link v-widget&quot;]/a/span</td>
	<td>Edit</td>
</tr>
<tr>
	<td>closeNotification</td>
	<td>//body/div[2]/div</td>
	<td>0,0</td>
</tr>
<!--Switch to edit mode-->
<tr>
	<td>mouseClickAndWait</td>
	<td>//div[5]/div/a/span</td>
	<td>12,3</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//body/div[2]/div//p</td>
	<td>exact:Mode: edit State: normal</td>
</tr>
<tr>
	<td>closeNotification</td>
	<td>//body/div[2]/div</td>
	<td>0,0</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[@class=&quot;v-link v-widget&quot;]/a/span</td>
	<td>Done</td>
</tr>
<!--Maximize-->
<tr>
	<td>mouseClickAndWait</td>
	<td>//div[6]/div/a/span</td>
	<td>16,7</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//body/div[2]/div//p</td>
	<td>exact:Mode: edit State: maximized</td>
</tr>
<tr>
	<td>closeNotification</td>
	<td>//body/div[2]/div</td>
	<td>0,0</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[6]/div/a/span</td>
	<td>Back to normal</td>
</tr>
<!--Restore back to normal-->
<tr>
	<td>mouseClickAndWait</td>
	<td>//div[6]/div/a/span</td>
	<td>71,8</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//body/div[2]/div//p</td>
	<td>exact:Mode: edit State: normal</td>
</tr>
<tr>
	<td>closeNotification</td>
	<td>//body/div[2]/div</td>
	<td>0,0</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[@class=&quot;v-link v-widget&quot;]/a/span</td>
	<td>Done</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[6]/div/a/span</td>
	<td>Maximize</td>
</tr>
<tr>
	<td>screenCapture</td>
	<td></td>
	<td>final</td>
</tr>