Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
80647626
Commit
80647626
authored
Dec 05, 2017
by
Tomáš Peterka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pdm_test] Add RenderJS UI test for Stock View
parent
6879453c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
159 additions
and
5 deletions
+159
-5
bt5/erp5_pdm_ui_test/PathTemplateItem/portal_tests/pdm_zuite/test_renderjs_inventory_listbox_render.xml
...ests/pdm_zuite/test_renderjs_inventory_listbox_render.xml
+58
-0
bt5/erp5_pdm_ui_test/PathTemplateItem/portal_tests/pdm_zuite/test_renderjs_inventory_listbox_render.zpt
...ests/pdm_zuite/test_renderjs_inventory_listbox_render.zpt
+75
-0
bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_CommonTemplate.zpt
...portal_skins/erp5_pdm_ui_test/PdmZuite_CommonTemplate.zpt
+22
-2
bt5/erp5_pdm_ui_test/bt/description
bt5/erp5_pdm_ui_test/bt/description
+2
-2
bt5/erp5_pdm_ui_test/bt/test_dependency_list
bt5/erp5_pdm_ui_test/bt/test_dependency_list
+2
-1
No files found.
bt5/erp5_pdm_ui_test/PathTemplateItem/portal_tests/pdm_zuite/test_renderjs_inventory_listbox_render.xml
0 → 100644
View file @
80647626
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<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_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test_renderjs_inventory_listbox_render
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_pdm_ui_test/PathTemplateItem/portal_tests/pdm_zuite/test_renderjs_inventory_listbox_render.zpt
0 → 100644
View file @
80647626
<html>
<head><title>
Test quantity steps for price on internal supply line
</title></head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"4"
>
Test quantity steps for price on internal supply line
</td></tr>
</thead>
<tbody
tal:define=
"init_method string:PdmZuite_createDelivery?state=ordered"
>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplate/macros/init_rjs"
/>
<tr><td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Views"]
</td><td></td></tr>
<tr><td>
click
</td>
<td>
//a[@data-i18n="Views"]
</td><td></td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Stock"]
</td><td></td></tr>
<tr><td>
click
</td>
<td>
//a[@data-i18n="Stock"]
</td><td></td></tr>
<tr><td>
store
</td>
<td>
//div[@data-gadget-url="${renderjs_url}/gadget_erp5_field_listbox.html"]//div[@class="document_table"]
</td>
<td>
container
</td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
${container}/nav//span[@data-i18n="2 Records"]
</td><td></td></tr>
<tr><td>
assertText
</td>
<td>
${container}/table/tbody/tr[1]/td[1]//a
</td>
<td>
erp5_pdm_ui_test_destination_node_title
</td></tr>
<!-- variation is not important -->
<tr><td>
assertFloat
</td>
<td>
${container}/table/tbody/tr[1]/td[3]//p
</td>
<td>
0.0
</td></tr>
<tr><td>
assertFloat
</td>
<td>
${container}/table/tbody/tr[1]/td[4]//p
</td>
<td>
0.0
</td></tr>
<tr><td>
assertFloat
</td>
<td>
${container}/table/tbody/tr[1]/td[5]//p
</td>
<td>
1.0
</td></tr>
<!-- ListBox shows "wrong" item link thus following it does not make sense
<!-- select explanation for the first stock inventory item ->
<tr><td>click</td>
<td>${container}/table/tbody/tr[1]/td[1]//a</td><td></td></tr>
<tr><td>waitForElementPresent</td>
<td>${container}/nav//span[@data-i18n="1 Records"]</td><td></td></tr>
<!-- ensure one movement explaining the item ->
<tr><td>assertText</td>
<td>${container}/table/tbody/tr[1]/td[1]//a</td>
<td>${year}/${month}/${day}</td></tr>
<tr><td>assertText</td>
<td>${container}/table/tbody/tr[1]/td[2]//a</td>
<td>Sale Order</td></tr>
<tr><td>assertText</td>
<td>${container}/table/tbody/tr[1]/td[3]//a</td>
<td>erp5_pdm_ui_test_delivery_title</td></tr>
<tr><td>assertText</td>
<td>${container}/table/tbody/tr[1]/td[4]//a</td>
<td>erp5_pdm_ui_test_destination_node_title</td></tr>
<tr><td>assertFloat</td>
<td>${container}/table/tbody/tr[1]/td[6]//a</td>
<td>1.0</td></tr>
<tr><td>assertText</td>
<td>${container}/table/tbody/tr[1]/td[7]//a</td>
<td>planned</td></tr>
-->
</tbody>
</table>
</body>
</html>
\ No newline at end of file
bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_CommonTemplate.zpt
View file @
80647626
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<tal:block metal:define-macro="init">
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tal:block metal:define-macro="prepare_data">
<tr>
<td>setTimeout</td>
<td>600000</td>
...
...
@@ -60,6 +59,11 @@
<td>Done.</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="init">
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/prepare_data" />
<tr>
<td>open</td>
<td>${base_url}/product_module/erp5_pdm_ui_test_product/Resource_viewInventory</td>
...
...
@@ -71,4 +75,20 @@
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="init_rjs">
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/prepare_data" />
<tr>
<td>store</td>
<td>${base_url}/web_site_module/renderjs_runner</td>
<td>renderjs_url</td>
</tr>
<tr>
<td>open</td>
<td>${renderjs_url}/#/product_module/erp5_pdm_ui_test_product</td>
<td></td>
</tr>
</tal:block>
</tal:block>
\ No newline at end of file
bt5/erp5_pdm_ui_test/bt/description
View file @
80647626
bt5/erp5_pdm_ui_test/bt/test_dependency_list
View file @
80647626
erp5_full_text_mroonga_catalog
erp5_configurator_standard_trade_template
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment