Author: vuthelinh
Date: 2010-06-21 22:08:45 -0400 (Mon, 21 Jun 2010)
New Revision: 3416
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html
Log:
commit new script Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html 2010-06-21
12:38:36 UTC (rev 3415)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html 2010-06-22
02:08:45 UTC (rev 3416)
@@ -22,7 +22,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -47,7 +47,7 @@
<td></td>
</tr>
<tr>
- <td>clickAtAndWait</td>
+ <td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
</tr>
@@ -57,16 +57,11 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>click</td>
<td>link=Add New Page</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Add New Page</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
<td>--Choose "root" node</td>
<td></td>
@@ -92,9 +87,9 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
- <td>1,1</td>
+ <td>click</td>
+ <td>//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div</td>
+ <td></td>
</tr>
<tr>
<td>echo</td>
@@ -103,12 +98,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
+ <td>//td/div[2]/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
+ <td>click</td>
+ <td>//td/div[2]/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -118,27 +113,22 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td>//a[(a)onclick='eXo.core.DOMUtil.disableOnClick(this);']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td>click</td>
+ <td>//a[(a)onclick='eXo.core.DOMUtil.disableOnClick(this);']</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UITabPaneDashboard']/div/div/div/div/div/div[2]/div/div/div/div/span</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
<td>--------To fast</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
- <td>//div[@id='UITabPaneDashboard']/div/div/div/div/div/div[2]/div/div/div/div/span</td>
+ <td>waitForTextPresent</td>
+ <td>test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
@@ -152,19 +142,24 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>link=Edit Page</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>link=Edit Page</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=View Page properties</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=View Page properties</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -177,12 +172,17 @@
<td>test_dashboardpage_edit_30</td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>css=form#UIPageForm div.ActionButton</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
+ <td>css=form#UIPageForm div.ActionButton</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
<td>css=a.EdittedSaveButton</td>
<td></td>
</tr>
@@ -197,16 +197,21 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Edit Page</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>link=View Page properties</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>link=View Page properties</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>title</td>
<td></td>
@@ -217,12 +222,12 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Cancel</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>css=a.CloseButton</td>
<td></td>
</tr>
@@ -237,26 +242,54 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>link=test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>link=test_dashboardpage_name_30</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
+ <td>link=Dashboard Editor</td>
+ <td></td>
+</tr>
+<tr>
+ <td>mouseOver</td>
+ <td>link=Dashboard Editor</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Edit Layout</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Edit Layout</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site's Config</td>
+ <td></td>
<td>clickAt</td>
<td>link=Site's Config</td>
<td>1,1</td>
</tr>
<tr>
+ <td>click</td>
+ <td>link=Site's Config</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Locale</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextPresent</td>
<td>Locale</td>
<td></td>
@@ -267,24 +300,24 @@
<td>label=English</td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')"]</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
- <td>1,1</td>
+ <td>//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
- <td>1,1</td>
+ <td>click</td>
+ <td>//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]</td>
+ <td></td>
</tr>
<tr>
<td>echo</td>
@@ -293,26 +326,31 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@class='SelectedTab']//img[@class='CloseIcon']</td>
+ <td>//div[@id='UITabPaneDashboard']/div/div/div/div/div/div[2]/div/div/div/div/a/img</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@class='SelectedTab']//img[@class='CloseIcon']</td>
+ <td>clickAndWait</td>
+ <td>//div[@id='UITabPaneDashboard']/div/div/div/div/div/div[2]/div/div/div/div/a/img</td>
<td></td>
</tr>
<tr>
- <td>assertConfirmation</td>
+ <td>waitForConfirmation</td>
<td>Really want to remove this dashboard?</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementNotPresent</td>
+ <td>test_dashboardpage_name_30</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextNotPresent</td>
<td>test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>