Commit aab9d088 authored by Rafael Monnerat's avatar Rafael Monnerat

Drop Configuration Key Tests

parent e09ca249
...@@ -110,38 +110,11 @@ ...@@ -110,38 +110,11 @@
<td>Language</td>\n <td>Language</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Configurator Key</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>verifyTextPresent</td>\n <td>verifyTextPresent</td>\n
<td>ERP5 Configuration</td>\n <td>ERP5 Configuration</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="field_my_ac_key"]</td>\n
<td>wrong_configuration_key</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td tal:content="python: \'//button[@value=\\\'business_configuration_module/%s\\\']\' %\n
here.Zuite_getConfigurationTestDict()[\'business_configuration_id\']"></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Incorrect Configuration Key</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="field_my_ac_key"]</td>\n
<td tal:content="python:\n
here.Zuite_getConfigurationTestDict()[\'configuration_key\']"></td>\n
</tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td tal:content="python: \'//button[@value=\\\'business_configuration_module/%s\\\']\' %\n <td tal:content="python: \'//button[@value=\\\'business_configuration_module/%s\\\']\' %\n
......
...@@ -110,38 +110,11 @@ ...@@ -110,38 +110,11 @@
<td>Language</td>\n <td>Language</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Configurator Key</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>verifyTextPresent</td>\n <td>verifyTextPresent</td>\n
<td>ERP5 Configuration</td>\n <td>ERP5 Configuration</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="field_my_ac_key"]</td>\n
<td>wrong_configuration_key</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td tal:content="python: \'//button[@value=\\\'business_configuration_module/%s\\\']\' %\n
here.Zuite_getConfigurationTestDict()[\'business_configuration_id\']"></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Incorrect Configuration Key</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="field_my_ac_key"]</td>\n
<td tal:content="python:\n
here.Zuite_getConfigurationTestDict()[\'configuration_key\']"></td>\n
</tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td tal:content="python: \'//button[@value=\\\'business_configuration_module/%s\\\']\' %\n <td tal:content="python: \'//button[@value=\\\'business_configuration_module/%s\\\']\' %\n
......
...@@ -60,7 +60,6 @@ ...@@ -60,7 +60,6 @@
from DateTime import DateTime\n from DateTime import DateTime\n
\n \n
configuration_dict = {\n configuration_dict = {\n
\'configuration_key\': \'a\', # XXX: fill as appropriate for test env\n
\'customer_organisation_title\': \'Nexedi SA\',\n \'customer_organisation_title\': \'Nexedi SA\',\n
\'customer_organisation_email\': \'webproject-report@erp5.org\',\n \'customer_organisation_email\': \'webproject-report@erp5.org\',\n
\'customer_organisation_telephone\': \'+123 234 567 891\',\n \'customer_organisation_telephone\': \'+123 234 567 891\',\n
......
...@@ -79,7 +79,8 @@ if default_site_preference.getPreferenceState() != \'global\':\n ...@@ -79,7 +79,8 @@ if default_site_preference.getPreferenceState() != \'global\':\n
default_site_preference.enable()\n default_site_preference.enable()\n
\n \n
# update repository info of Configurator site\n # update repository info of Configurator site\n
portal.portal_templates.updateRepositoryBusinessTemplateList(\n if len(portal.portal_templates.getRepositoryList([])) == 0:\n
portal.portal_templates.updateRepositoryBusinessTemplateList(\n
repository_list = configuration_info[\'bt_repository_list\'])\n repository_list = configuration_info[\'bt_repository_list\'])\n
\n \n
# (Re)Create the Business Configurator\n # (Re)Create the Business Configurator\n
...@@ -91,8 +92,7 @@ if business_configuration is not None:\n ...@@ -91,8 +92,7 @@ if business_configuration is not None:\n
business_configuration = context.business_configuration_module.newContent(\n business_configuration = context.business_configuration_module.newContent(\n
portal_type="Business Configuration",\n portal_type="Business Configuration",\n
id=bc_id, \n id=bc_id, \n
title=bc_id,\n title=bc_id)\n
reference=configuration_info[\'configuration_key\'])\n
\n \n
business_configuration.setResource(workflow_path)\n business_configuration.setResource(workflow_path)\n
\n \n
......
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