diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml index 5e406255de57ef3a2e245238686893bab53b1cab..a8dc09a2326540a01c471ea59ee1323aad71e367 100644 --- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml @@ -206,6 +206,16 @@ \t<td>Business Template test_xhtml_style, test_web installed</td>\n \t<td></td>\n </tr>\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/foo_module/BTZuite_reset?end=1"/>\n + <td></td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td>Reset Successfully.</td>\n + <td></td>\n +</tr>\n </body>\n </html>\n diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml index 594b102ae2e765ce99177d44cb7e61a274050593..d964d04a488f43ed75da3eee2958c8fde1404bee 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml @@ -74,16 +74,16 @@ for bt in bt_list:\n if bt.getTitle().startswith(\'test_\'):\n bt.uninstall()\n \n -is_test_repos_present = False\n -repository_list = context.portal_templates.getRepositoryList()\n -for repository in repository_list:\n - if repository.startswith(\'http://torrent.erp5.org/dists/snapshot/test_bt5\'):\n - is_test_repos_present = True\n - break\n +# modify repository list information\n +if end:\n + # set default repository list when test is finished\n + repository_list = [\'http://torrent.erp5.org/dists/snapshot/bt5\']\n +else:\n + # just used test repository to not display to many bt and thus have listbox\n + # with many pages\n + repository_list = [\'http://torrent.erp5.org/dists/snapshot/test_bt5\']\n \n -if not is_test_repos_present:\n - repository_list.append(\'http://torrent.erp5.org/dists/snapshot/test_bt5\')\n - context.portal_templates.updateRepositoryBusinessTemplateList(repository_list)\n +context.portal_templates.updateRepositoryBusinessTemplateList(repository_list)\n \n return \'Reset Successfully.\'\n </string> </value> @@ -108,7 +108,7 @@ return \'Reset Successfully.\'\n </item> <item> <key> <string>_params</string> </key> - <value> <string></string> </value> + <value> <string>end=0</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -128,22 +128,19 @@ return \'Reset Successfully.\'\n <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>0</int> </value> + <value> <int>1</int> </value> </item> <item> <key> <string>co_varnames</string> </key> <value> <tuple> + <string>end</string> <string>_getattr_</string> <string>context</string> <string>bt_list</string> <string>_getiter_</string> <string>bt</string> - <string>False</string> - <string>is_test_repos_present</string> <string>repository_list</string> - <string>repository</string> - <string>True</string> </tuple> </value> </item> @@ -155,7 +152,9 @@ return \'Reset Successfully.\'\n <item> <key> <string>func_defaults</string> </key> <value> - <none/> + <tuple> + <int>0</int> + </tuple> </value> </item> <item> diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index d7019ae2ee5ed8c764ee5c7c4dd54a2e9d6c576d..2d73b5e3ba15b14f50c38dad75d5f05a9aa21301 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -149 \ No newline at end of file +152 \ No newline at end of file