Author: hangnguyen
Date: 2010-11-02 06:45:44 -0400 (Tue, 02 Nov 2010)
New Revision: 4900
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_25_05_002_CutPasteNodeToSameNavigation.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_25_05_004_CutPasteNodeByAddPageWizard.html
Log:
TestVN-356:Clean and Improve existing Selenium for GateIn
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_25_05_002_CutPasteNodeToSameNavigation.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_25_05_002_CutPasteNodeToSameNavigation.html 2010-11-02
10:18:17 UTC (rev 4899)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_25_05_002_CutPasteNodeToSameNavigation.html 2010-11-02
10:45:44 UTC (rev 4900)
@@ -118,31 +118,66 @@
</tr>
<tr>
<td>echo</td>
- <td>--Delete node--</td>
+ <td>--Return to default--</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//a[@title='Users and groups management']</td>
+ <td></td>
+</tr>
+<tr>
<td>mouseDownRight</td>
<td>//a[@title='Users and groups management']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Delete Node</td>
+ <td>link=Cut Node</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>link=Delete Node</td>
+ <td>link=Cut Node</td>
<td></td>
</tr>
<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete this node?</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div/a</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>mouseDownRight</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and
@title='Organization']</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
+ <td>//div[@id='NavigationNodePopupMenu']/div/div[2]/div/div/div[7]/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='NavigationNodePopupMenu']/div/div[2]/div/div/div[7]/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Save</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_25_05_004_CutPasteNodeByAddPageWizard.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_25_05_004_CutPasteNodeByAddPageWizard.html 2010-11-02
10:18:17 UTC (rev 4899)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_25_05_004_CutPasteNodeByAddPageWizard.html 2010-11-02
10:45:44 UTC (rev 4900)
@@ -137,6 +137,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
Show replies by date