Commit 5a8bcbce authored by Roque Porchetto's avatar Roque Porchetto

UI tests updated.

parent b3daf23d
portal = context.getPortalObject()
portal_catalog = portal.portal_catalog
# --------------- FAKE DATA SET ---------------------
reference = "test_dataset"
portal_type = "Data Set"
query_dict = { "portal_type": portal_type,
"reference" : reference}
result = portal_catalog(**query_dict)
if len(result) is 0:
data_set = portal.data_set_module.newContent(
portal_type = portal_type,
reference = reference,
title = "Fake Data for test")
data_set.validate()
# --------------- FAKE DATA DESCRIPTOR ---------------------
reference = "test_dataset_fake_data_descriptor"
portal_type = "Data Descriptor"
data_descriptor = portal.data_descriptor_module.newContent(
portal_type = portal_type,
reference = reference,
title = "Fake Data for test")
return "Fake Data created."
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TelecomTestUI_addFakeDataArray</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -44,7 +44,7 @@
<tr>
<td>type</td>
<td>name=search</td>
<td>Data set test_dataset</td>
<td>Fake Data for test</td>
</tr>
<!--
<tr>
......@@ -55,19 +55,19 @@
-->
<tr>
<td>waitForElementPresent</td>
<td>//a[text()='Data set test_dataset']</td>
<td>//a[text()='Fake Data for test']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[text()='Data set test_dataset']</td>
<td>//a[text()='Fake Data for test']</td>
<td></td>
</tr>
<!-- Check Header -->
<tr>
<td>waitForElementPresent</td>
<td>//a[text()='Data Set : Data set test_dataset']</td>
<td>//a[text()='Data Set : Fake Data for test']</td>
<td></td>
</tr>
<!--
......
portal_skins/erp5_ui_test/TelecomTestUI_addFakeDataArray
portal_tests/telecom_renderjs_ui_zuite/*
web_page_module/*fif_*
web_site_module/fif_data_runner
......
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