Author: hangnguyen
Date: 2010-08-30 06:56:34 -0400 (Mon, 30 Aug 2010)
New Revision: 3965
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_12_02_007_EditCurrentPortalWithNoOneForEditRight.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_12_02_007_EditCurrentPortalWithNoOneForEditRight.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_12_02_007_EditCurrentPortalWithNoOneForEditRight.html 2010-08-30
10:56:09 UTC (rev 3964)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_12_02_007_EditCurrentPortalWithNoOneForEditRight.html 2010-08-30
10:56:34 UTC (rev 3965)
@@ -18,7 +18,7 @@
</tr>
<tr>
<td>echo</td>
- <td>-- Edit Current Portal With No one For Edit Right</td>
+ <td>-- Edit current portal with no one for edit right--</td>
<td></td>
</tr>
<tr>
@@ -48,20 +48,15 @@
</tr>
<tr>
<td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Site Editor</td>
+ <td>echo</td>
+ <td>-- Click Edit layout --</td>
<td></td>
</tr>
<tr>
- <td>click</td>
- <td>link=Site Editor</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Edit Layout</td>
<td></td>
@@ -73,7 +68,7 @@
</tr>
<tr>
<td>echo</td>
- <td>- Change Portal Properties -</td>
+ <td>Choose Site's Config on Edit inline composer --</td>
<td></td>
</tr>
<tr>
@@ -87,32 +82,37 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Choose Permission Setting --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>UIPortalForm</td>
+ <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[contains(@onclick,"submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting")]</td>
+ <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
- <td>link=Edit Permission Setting</td>
+ <td>echo</td>
+ <td>-- Choose Edit Permission--</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>waitForElementPresent</td>
<td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>- Delete all edit permissions -</td>
+ <td>click</td>
+ <td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
+ <td>waitForElementPresent</td>
<td>link=Delete Permission</td>
<td></td>
</tr>
@@ -122,7 +122,7 @@
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
+ <td>waitForElementPresent</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -132,22 +132,17 @@
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>- Verify Pop-up alert presence -</td>
+ <td>waitForTextPresent</td>
+ <td>The "Edit Permission Setting" list can not be
empty.</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='PopupMessage']</td>
- <td>The "editPermission" list can not be empty.</td>
+ <td>verifyTextPresent</td>
+ <td>The "Edit Permission Setting" list can not be
empty.</td>
+ <td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
- <td>//div[@class='PopupMessage']</td>
- <td>The "editPermission" list can not be empty.</td>
-</tr>
-<tr>
- <td>verifyElementPresent</td>
+ <td>waitForElementPresent</td>
<td>link=OK</td>
<td></td>
</tr>
@@ -157,7 +152,7 @@
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
+ <td>waitForElementPresent</td>
<td>link=Cancel</td>
<td></td>
</tr>
@@ -168,20 +163,15 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>UIPortalComposer</td>
+ <td>//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[@id='UIPortalComposer']/div[1]//a[1]</td>
+ <td>//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>- Sign Out -</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Sign out</td>
<td></td>
Show replies by date