Author: hangnguyen
Date: 2010-06-28 03:57:57 -0400 (Mon, 28 Jun 2010)
New Revision: 3495
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_14_03_003_CopyPasteNodeIntoTheSamePlace.html
Log:
TESTVN-356: Clean and improve
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_14_03_003_CopyPasteNodeIntoTheSamePlace.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_14_03_003_CopyPasteNodeIntoTheSamePlace.html 2010-06-28
07:47:16 UTC (rev 3494)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_14_03_003_CopyPasteNodeIntoTheSamePlace.html 2010-06-28
07:57:57 UTC (rev 3495)
@@ -22,6 +22,11 @@
<td></td>
</tr>
<tr>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Sign in</td>
<td></td>
@@ -32,6 +37,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>root</td>
@@ -42,7 +52,7 @@
<td>gtn</td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
<td></td>
</tr>
@@ -78,12 +88,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//a[@title='Home']</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and
@title='Home']</td>
<td></td>
</tr>
<tr>
- <td>componentExoContextMenu</td>
- <td>xpath=//div[@id='UINavigationNodeSelector']//a[@class='NodeIcon
DefaultPageIcon NodeSelected' and @title='Home']</td>
+ <td>mouseDownRight</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and
@title='Home']</td>
<td></td>
</tr>
<tr>
@@ -102,13 +112,13 @@
<td></td>
</tr>
<tr>
- <td>componentExoContextMenu</td>
- <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[1]</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='UIContextMenuContainer']/div[2]/div/div/div[7]/a</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='UIContextMenuContainer']/div[2]/div/div/div[7]/a</td>
+ <td>mouseDownRight</td>
+ <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[1]</td>
<td></td>
</tr>
<tr>
@@ -122,11 +132,16 @@
<td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>This node name already exists.</td>
+ <td>waitForElementPresent</td>
+ <td>//div[2]/div[3]/div/div/div/div/div[2]</td>
<td></td>
</tr>
<tr>
+ <td>verifyText</td>
+ <td>//div[2]/div[3]/div/div/div/div/div[2]</td>
+ <td>This node name already exists.</td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
@@ -152,15 +167,10 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
</tbody></table>
</body>
Show replies by date