summaryrefslogtreecommitdiffstats
path: root/uitest/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html')
-rw-r--r--uitest/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html118
1 files changed, 84 insertions, 34 deletions
diff --git a/uitest/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html b/uitest/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html
index 55c9d18eb8..e1ceca0f1b 100644
--- a/uitest/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html
+++ b/uitest/integration-testscripts/Liferay-5/integration-test-liferay-5.2.3-portlet2.html
@@ -81,90 +81,140 @@
<td>//div[@id='Vaadin-VaadinPortlet20Test']/p/a</td>
<td>16,11</td>
</tr>
+<!--Start of actual portlet test-->
<tr>
- <td>pause</td>
- <td>1000</td>
+ <td>waitForElementPresent</td>
+ <td>//div[2]/div/div/div/span</td>
<td></td>
</tr>
<tr>
- <td>waitForVaadin</td>
- <td></td>
+ <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]</td>
- <td></td>
+ <td>//body/div[2]/div</td>
+ <td>0,0</td>
</tr>
<tr>
- <td>verifyTextNotPresent</td>
- <td>Action received</td>
+ <td>assertTextNotPresent</td>
+ <td>Action * received</td>
<td></td>
</tr>
<tr>
- <td>mouseClickAndWait</td>
- <td>vaadin=v-JSR286TestPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[4]/VLink[0]/domChild[0]/domChild[0]</td>
- <td>8,7</td>
+ <td>assertText</td>
+ <td>//div[@class=&quot;v-link v-widget&quot;]/a/span</td>
+ <td>Edit</td>
</tr>
+<!--Send an action-->
<tr>
- <td>closeNotification</td>
- <td>//body/div[2]</td>
- <td>0,0</td>
+ <td>mouseClickAndWait</td>
+ <td>//div[8]/div/a/span</td>
+ <td>32,9</td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>Done</td>
+ <td>assertTextPresent</td>
+ <td>Action 'someAction' received</td>
<td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>Action received</td>
- <td></td>
+ <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>vaadin=v-JSR286TestPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[7]/VLink[0]/domChild[0]/domChild[0]</td>
- <td>28,7</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]</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>vaadin=v-JSR286TestPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[5]/VLink[0]/domChild[0]/domChild[0]</td>
- <td>37,-41</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]</td>
+ <td>//body/div[2]/div</td>
<td>0,0</td>
</tr>
<tr>
- <td>verifyTextPresent</td>
+ <td>assertText</td>
+ <td>//div[6]/div/a/span</td>
<td>Back to normal</td>
- <td></td>
</tr>
+<!--Restore back to normal-->
<tr>
<td>mouseClickAndWait</td>
- <td>vaadin=v-JSR286TestPortlet_WAR_demo_LAYOUT_10706::/VVerticalLayout[0]/ChildComponentContainer[5]/VLink[0]/domChild[0]/domChild[0]</td>
- <td>46,-57</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]</td>
+ <td>//body/div[2]/div</td>
<td>0,0</td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>Edit</td>
- <td></td>
+ <td>assertText</td>
+ <td>//div[@class=&quot;v-link v-widget&quot;]/a/span</td>
+ <td>Done</td>
</tr>
<tr>
- <td>verifyTextPresent</td>
+ <td>assertText</td>
+ <td>//div[6]/div/a/span</td>
<td>Maximize</td>
+</tr>
+<tr>
+ <td>screenCapture</td>
<td></td>
+ <td>final</td>
</tr>
</tbody></table>
</body>