Commit d475586d authored by Ivan Tyagov's avatar Ivan Tyagov

Finish / alter work started in r36856.

Fix tests so in an empty system first will open respective Web Section (something which will guarantee that a default Knowledge Pad is created in background) then try to add gadget to it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36858 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4134b1aa
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -73,7 +73,7 @@
</tr> \n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -153,7 +153,7 @@
</tr> \n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......
......@@ -56,7 +56,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -137,7 +137,7 @@
<!-- Test bad link -->\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/en</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -109,7 +109,7 @@
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
\n
......@@ -139,6 +139,22 @@
</tr>\n
\n
<!-- Add Latest Content Gadget -->\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/1/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/1/Zuite_AddGadgetToActivePad?gadget_relative_url=portal_gadgets/km_latest_documents&amp;mode=web_section&amp;default_pad_group=default_section_pad</td>\n
......
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -141,7 +141,6 @@
<td>Converted</td>\n
<td></td>\n
</tr>\n
\n
<!-- add "My Documents" gadget -->\n
<tr>\n
<td>openAndWait</td>\n
......@@ -158,11 +157,8 @@
<td>selenium.isTextPresent("TioLive Spreadsheet")</td>\n
<td>10000</td> \n
</tr>\n
\n
<!-- XXX: add "Profile" gadget -->\n
\n
\n
\n
<tal:block metal:use-macro="here/KMZuite_CommonTemplate/macros/deleteKMWebSite" />\n
\n
</tbody></table>\n
......
......@@ -58,10 +58,9 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Section 1</td>\n
......@@ -169,7 +168,6 @@
<td></td>\n
</tr>\n
\n
\n
<tal:block metal:use-macro="here/KMZuite_CommonTemplate/macros/deleteKMWebSite" />\n
\n
</tbody></table>\n
......
......@@ -58,10 +58,9 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>link=Section 1</td>\n
......
......@@ -57,7 +57,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -85,7 +85,6 @@
<td>//tr[@id=\'listbox_data_line_0\']//span[@class=\'search_result_title\']</td>\n
<td>test_km_web_site_page</td>\n
</tr>\n
\n
<!-- Test listbox sub search -->\n
<tr>\n
<td>verifyValue</td>\n
......
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -75,7 +75,7 @@
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/km_test_web_site/en</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<tr>\n
......
......@@ -58,7 +58,7 @@
\n
<tr>\n
<td>openAndWait</td>\n
<td>${base_url}/web_site_module/km_test_web_site/view</td>\n
<td>${base_url}/web_site_module/km_test_web_site</td>\n
<td></td>\n
</tr>\n
<!-- add "My Documents" gadget -->\n
......
81
\ No newline at end of file
82
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment