Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
f55a0c31
Commit
f55a0c31
authored
Mar 07, 2018
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_pdm_renderjs_ui_test]: Introduce tests for pdm in renderjs UI
parent
19adc28f
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
1602 additions
and
0 deletions
+1602
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite.xml
...lateItem/portal_tests/renderjs_ui_stock_browser_zuite.xml
+26
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testConfirmedState.xml
...ts/renderjs_ui_stock_browser_zuite/testConfirmedState.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testConfirmedState.zpt
...ts/renderjs_ui_stock_browser_zuite/testConfirmedState.zpt
+87
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testDeliveredState.xml
...ts/renderjs_ui_stock_browser_zuite/testDeliveredState.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testDeliveredState.zpt
...ts/renderjs_ui_stock_browser_zuite/testDeliveredState.zpt
+88
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testOrderedState.xml
...ests/renderjs_ui_stock_browser_zuite/testOrderedState.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testOrderedState.zpt
...ests/renderjs_ui_stock_browser_zuite/testOrderedState.zpt
+87
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testPlannedState.xml
...ests/renderjs_ui_stock_browser_zuite/testPlannedState.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testPlannedState.zpt
...ests/renderjs_ui_stock_browser_zuite/testPlannedState.zpt
+88
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testReadyState.xml
..._tests/renderjs_ui_stock_browser_zuite/testReadyState.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testReadyState.zpt
..._tests/renderjs_ui_stock_browser_zuite/testReadyState.zpt
+87
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStartedState.xml
...ests/renderjs_ui_stock_browser_zuite/testStartedState.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStartedState.zpt
...ests/renderjs_ui_stock_browser_zuite/testStartedState.zpt
+87
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStoppedState.xml
...ests/renderjs_ui_stock_browser_zuite/testStoppedState.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStoppedState.zpt
...ests/renderjs_ui_stock_browser_zuite/testStoppedState.zpt
+87
-0
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test.xml
...inTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test.xml
+26
-0
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.xml
...renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.zpt
...renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.zpt
+150
-0
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_checkStockBrowserForRenderjsUi.xml
...derjs_ui_test/PdmZuite_checkStockBrowserForRenderjsUi.xml
+58
-0
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_checkStockBrowserForRenderjsUi.zpt
...derjs_ui_test/PdmZuite_checkStockBrowserForRenderjsUi.zpt
+71
-0
bt5/erp5_pdm_renderjs_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalRJSStockBrowser.py
...tal_components/test.erp5.testFunctionalRJSStockBrowser.py
+56
-0
bt5/erp5_pdm_renderjs_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalRJSStockBrowser.xml
...al_components/test.erp5.testFunctionalRJSStockBrowser.xml
+123
-0
bt5/erp5_pdm_renderjs_ui_test/bt/copyright_list
bt5/erp5_pdm_renderjs_ui_test/bt/copyright_list
+1
-0
bt5/erp5_pdm_renderjs_ui_test/bt/dependency_list
bt5/erp5_pdm_renderjs_ui_test/bt/dependency_list
+3
-0
bt5/erp5_pdm_renderjs_ui_test/bt/description
bt5/erp5_pdm_renderjs_ui_test/bt/description
+1
-0
bt5/erp5_pdm_renderjs_ui_test/bt/license
bt5/erp5_pdm_renderjs_ui_test/bt/license
+1
-0
bt5/erp5_pdm_renderjs_ui_test/bt/template_format_version
bt5/erp5_pdm_renderjs_ui_test/bt/template_format_version
+1
-0
bt5/erp5_pdm_renderjs_ui_test/bt/template_path_list
bt5/erp5_pdm_renderjs_ui_test/bt/template_path_list
+2
-0
bt5/erp5_pdm_renderjs_ui_test/bt/template_skin_id_list
bt5/erp5_pdm_renderjs_ui_test/bt/template_skin_id_list
+1
-0
bt5/erp5_pdm_renderjs_ui_test/bt/template_test_id_list
bt5/erp5_pdm_renderjs_ui_test/bt/template_test_id_list
+1
-0
bt5/erp5_pdm_renderjs_ui_test/bt/test_dependency_list
bt5/erp5_pdm_renderjs_ui_test/bt/test_dependency_list
+4
-0
bt5/erp5_pdm_renderjs_ui_test/bt/title
bt5/erp5_pdm_renderjs_ui_test/bt/title
+1
-0
bt5/erp5_pdm_renderjs_ui_test/bt/version
bt5/erp5_pdm_renderjs_ui_test/bt/version
+1
-0
No files found.
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite.xml
0 → 100644
View file @
f55a0c31
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Zuite"
module=
"Products.Zelenium.zuite"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
renderjs_ui_stock_browser_zuite
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testConfirmedState.xml
0 → 100644
View file @
f55a0c31
<?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>
testConfirmedState
</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_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testConfirmedState.zpt
0 → 100644
View file @
f55a0c31
<html>
<head><title>
Test stock browser for confirmed state
</title></head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"4"
>
Test stock browser for confirmed state
</td></tr>
</thead>
<tbody
tal:define=
"init_method string:PdmZuite_createDelivery?state=confirmed"
>
<!-- Setup {{{ -->
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- Check destination -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_destination_node_title';
index python: 1;
current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check source -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_source_node_title';
index python: 2;
current_inventory python: 0.0;
available_inventory python: -1.0;
future_inventory python: -1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check for total value -->
<tal:block
tal:define=
"current_inventory python: 0.0;
available_inventory python: -1.0;
future_inventory python: 0.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory"
/>
</tal:block>
<!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody
</td>
<td></td>
</tr>
<tr>
<td>
verifyText
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[3]
</td>
<td>
erp5_pdm_ui_test_destination_node_title
</td>
</tr>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/go_to_stock_view"
/>
<tr>
<td>
waitForElementNotPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[5]/a
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<!-- vim: syntax=html foldmethod=marker -->
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testDeliveredState.xml
0 → 100644
View file @
f55a0c31
<?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>
testDeliveredState
</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_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testDeliveredState.zpt
0 → 100644
View file @
f55a0c31
<html>
<head><title>
Test stock browser for confirmed state
</title></head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"4"
>
Test stock browser for confirmed state
</td></tr>
</thead>
<tbody
tal:define=
"init_method string:PdmZuite_createDelivery?state=delivered"
>
<!-- Setup {{{ -->
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- Check destination -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_destination_node_title';
index python: 1;
current_inventory python: 1.0;
available_inventory python: 1.0;
future_inventory python: 1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check source -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_source_node_title';
index python: 2;
current_inventory python: -1.0;
available_inventory python: -1.0;
future_inventory python: -1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check for total value -->
<tal:block
tal:define=
"current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 0.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory"
/>
</tal:block>
<!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody
</td>
<td></td>
</tr>
<tr>
<td>
verifyText
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[3]
</td>
<td>
erp5_pdm_ui_test_destination_node_title
</td>
</tr>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/go_to_stock_view"
/>
<tr>
<td>
waitForElementNotPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[5]/a
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<!-- vim: syntax=html foldmethod=marker -->
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testOrderedState.xml
0 → 100644
View file @
f55a0c31
<?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>
testOrderedState
</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_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testOrderedState.zpt
0 → 100644
View file @
f55a0c31
<html>
<head><title>
Test stock browser for confirmed state
</title></head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"4"
>
Test stock browser for confirmed state
</td></tr>
</thead>
<tbody
tal:define=
"init_method string:PdmZuite_createDelivery?state=ordered"
>
<!-- Setup {{{ -->
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- Check destination -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_destination_node_title';
index python: 1;
current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check source -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_source_node_title';
index python: 2;
current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: -1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check for total value -->
<tal:block
tal:define=
"current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 0.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory"
/>
</tal:block>
<!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody
</td>
<td></td>
</tr>
<tr>
<td>
verifyText
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[3]
</td>
<td>
erp5_pdm_ui_test_destination_node_title
</td>
</tr>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/go_to_stock_view"
/>
<tr>
<td>
waitForElementNotPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[5]/a
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<!-- vim: syntax=html foldmethod=marker -->
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testPlannedState.xml
0 → 100644
View file @
f55a0c31
<?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>
testPlannedState
</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_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testPlannedState.zpt
0 → 100644
View file @
f55a0c31
<html>
<head><title>
Test stock browser for confirmed state
</title></head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"4"
>
Test stock browser for confirmed state
</td></tr>
</thead>
<tbody
tal:define=
"init_method string:PdmZuite_createDelivery?state=planned"
>
<!-- Setup {{{ -->
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- Check destination -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_destination_node_title';
index python: 1;
current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check source -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_source_node_title';
index python: 2;
current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: -1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check for total value -->
<tal:block
tal:define=
"current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 0.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory"
/>
</tal:block>
<!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody
</td>
<td></td>
</tr>
<tr>
<td>
verifyText
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[3]
</td>
<td>
erp5_pdm_ui_test_destination_node_title
</td>
</tr>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/go_to_stock_view"
/>
<tr>
<td>
waitForElementNotPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[5]/a
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<!-- vim: syntax=html foldmethod=marker -->
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testReadyState.xml
0 → 100644
View file @
f55a0c31
<?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>
testReadyState
</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_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testReadyState.zpt
0 → 100644
View file @
f55a0c31
<html>
<head><title>
Test stock browser for confirmed state
</title></head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"4"
>
Test stock browser for confirmed state
</td></tr>
</thead>
<tbody
tal:define=
"init_method string:PdmZuite_createDelivery?state=ready"
>
<!-- Setup {{{ -->
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- Check destination -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_destination_node_title';
index python: 1;
current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check source -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_source_node_title';
index python: 2;
current_inventory python: 0.0;
available_inventory python: -1.0;
future_inventory python: -1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check for total value -->
<tal:block
tal:define=
"current_inventory python: 0.0;
available_inventory python: -1.0;
future_inventory python: 0.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory"
/>
</tal:block>
<!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody
</td>
<td></td>
</tr>
<tr>
<td>
verifyText
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[3]
</td>
<td>
erp5_pdm_ui_test_destination_node_title
</td>
</tr>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/go_to_stock_view"
/>
<tr>
<td>
waitForElementNotPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[5]/a
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<!-- vim: syntax=html foldmethod=marker -->
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStartedState.xml
0 → 100644
View file @
f55a0c31
<?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>
testStartedState
</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_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStartedState.zpt
0 → 100644
View file @
f55a0c31
<html>
<head><title>
Test stock browser for confirmed state
</title></head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"4"
>
Test stock browser for confirmed state
</td></tr>
</thead>
<tbody
tal:define=
"init_method string:PdmZuite_createDelivery?state=started"
>
<!-- Setup {{{ -->
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- Check destination -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_destination_node_title';
index python: 1;
current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check source -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_source_node_title';
index python: 2;
current_inventory python: -1.0;
available_inventory python: -1.0;
future_inventory python: -1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check for total value -->
<tal:block
tal:define=
"current_inventory python: -1.0;
available_inventory python: -1.0;
future_inventory python: 0.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory"
/>
</tal:block>
<!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody
</td>
<td></td>
</tr>
<tr>
<td>
verifyText
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[3]
</td>
<td>
erp5_pdm_ui_test_destination_node_title
</td>
</tr>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/go_to_stock_view"
/>
<tr>
<td>
waitForElementNotPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[5]/a
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<!-- vim: syntax=html foldmethod=marker -->
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStoppedState.xml
0 → 100644
View file @
f55a0c31
<?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>
testStoppedState
</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_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStoppedState.zpt
0 → 100644
View file @
f55a0c31
<html>
<head><title>
Test stock browser for confirmed state
</title></head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"4"
>
Test stock browser for confirmed state
</td></tr>
</thead>
<tbody
tal:define=
"init_method string:PdmZuite_createDelivery?state=stopped"
>
<!-- Setup {{{ -->
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- Check destination -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_destination_node_title';
index python: 1;
current_inventory python: 1.0;
available_inventory python: 1.0;
future_inventory python: 1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check source -->
<tal:block
tal:define=
"title python: 'erp5_pdm_ui_test_source_node_title';
index python: 2;
current_inventory python: -1.0;
available_inventory python: -1.0;
future_inventory python: -1.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/init"
/>
</tal:block>
<!-- Check for total value -->
<tal:block
tal:define=
"current_inventory python: 0.0;
available_inventory python: 0.0;
future_inventory python: 0.0;
"
>
<tal:block
metal:use-macro=
"here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory"
/>
</tal:block>
<!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(1)', 'footer': '1 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody
</td>
<td></td>
</tr>
<tr>
<td>
verifyText
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[3]
</td>
<td>
erp5_pdm_ui_test_destination_node_title
</td>
</tr>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
metal:use-macro=
"here/PdmZuite_CommonTemplateForRenderjsUi/macros/go_to_stock_view"
/>
<tr>
<td>
waitForElementNotPresent
</td>
<td>
//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[5]/a
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<!-- vim: syntax=html foldmethod=marker -->
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test.xml
0 → 100644
View file @
f55a0c31
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_pdm_renderjs_ui_test
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.xml
0 → 100644
View file @
f55a0c31
<?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>
PdmZuite_CommonTemplateForRenderjsUi
</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_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.zpt
0 → 100644
View file @
f55a0c31
<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" />
<tr>
<td>setTimeout</td>
<td>600000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/PdmZuite_deleteData</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Deleted Successfully.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/PdmZuite_reset</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reset Successfully.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td tal:content="string:$${base_url}/internal_packing_list_module/$init_method" />
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Delivery Created.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/renderjs_runner/#/product_module/erp5_pdm_ui_test_product</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/go_to_stock_view" />
</tal:block>
<tal:block metal:define-macro="go_to_stock_view">
<tr>
<td colspan="3"><b>Go to Stock view</b></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@class, 'ui-header')]//a[@data-i18n='Views']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[contains(@class, 'ui-header')]//a[@data-i18n='Views']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//ul[@class='document-listview']//a[@data-i18n='Stock']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//ul[@class='document-listview']//a[@data-i18n='Stock']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]</td>
<td></td>
</tr>
<tr>
<td colspan="3"><p></p></td>
</tr>
</tal:block>
<tal:block metal:define-macro="check_links">
<tr>
<td colspan="3"><b>Check Correct Links For Sale Packing List</b></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[2]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[3]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[4]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[5]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[6]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[7]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
</tal:block>
</tal:block>
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_checkStockBrowserForRenderjsUi.xml
0 → 100644
View file @
f55a0c31
<?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>
PdmZuite_checkStockBrowserForRenderjsUi
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
iso-8859-15
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_checkStockBrowserForRenderjsUi.zpt
0 → 100644
View file @
f55a0c31
<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:define="base_url python: '/' + here.getPortalObject().getId()">
<!-- Check inventory total records -->
<tr>
<td>waitForElementPresent</td>
<td>//nav//span[@class='ui-disabled ui-right']</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>//nav//span[@class='ui-disabled ui-right']</td>
<td>2 Records</td>
</tr>
<!-- Check the correct title -->
<tr>
<td>assertText</td>
<td tal:content="python: '//div[@data-gadget-scope=\'field_listbox\']//table/tbody/tr[%s]/td[1]' % index">inventory value</td>
<td tal:content="python: title"></td>
</tr>
<!-- Check that inventory and movement list are consistent while in loop -->
<tal:block tal:repeat="inventory_tuple python: [(current_inventory, 3),
(available_inventory, 4),
(future_inventory, 5),
]">
<tr>
<td>assertText</td>
<td tal:content="python: '//div[@data-gadget-scope=\'field_listbox\']//table/tbody/tr[%s]/td[%s]' % (index, inventory_tuple[1])">inventory value</td>
<td tal:content="python: int(inventory_tuple[0])"></td>
</tr>
</tal:block>
<tr>
<td colspan="3"><p></p></td>
</tr>
</tal:block>
<tal:block metal:define-macro="check_total_for_inventory">
<tr>
<td colspan="3"><b>Total for inventories</b></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tfoot/tr[1]/td[1]</td>
<td>Total</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tfoot/tr[1]/td[3]</td>
<td tal:content="python: int(current_inventory)"></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tfoot/tr[1]/td[4]</td>
<td tal:content="python: int(available_inventory)"></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tfoot/tr[1]/td[5]</td>
<td tal:content="python: int(future_inventory)"></td>
</tr>
<tr>
<td colspan="3"><p></p></td>
</tr>
</tal:block>
</tal:block>
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalRJSStockBrowser.py
0 → 100644
View file @
f55a0c31
##############################################################################
#
# Copyright (c) 2018 Nexedi SARL and Contributors. All Rights Reserved.
# Ayush Tiwari <ayush.tiwari@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import
unittest
from
Products.ERP5Type.tests.ERP5TypeFunctionalTestCase
import
\
ERP5TypeFunctionalTestCase
class
TestRenderJSUIStockBrowser
(
ERP5TypeFunctionalTestCase
):
foreground
=
0
run_only
=
"renderjs_ui_stock_browser_zuite"
def
getBusinessTemplateList
(
self
):
"""
Return the list of business templates.
"""
return
(
'erp5_pdm_renderjs_ui_test'
,
'erp5_pdm_ui_test'
,
'erp5_pdm'
,
'erp5_web_renderjs_ui'
,
'erp5_web_renderjs_ui_test'
,
'erp5_ui_test_core'
,
'erp5_test_result'
,
'erp5_configurator_standard_trade_template'
,
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestRenderJSUIStockBrowser
))
return
suite
bt5/erp5_pdm_renderjs_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalRJSStockBrowser.xml
0 → 100644
View file @
f55a0c31
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_recorded_property_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testFunctionalRJSStockBrowser
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testFunctionalRJSStockBrowser
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Test Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_pdm_renderjs_ui_test/bt/copyright_list
0 → 100644
View file @
f55a0c31
Copyright (C) 2018 Nexedi SA
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/dependency_list
0 → 100644
View file @
f55a0c31
erp5_pdm
erp5_pdm_ui_test
erp5_web_renderjs_ui_test
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/description
0 → 100644
View file @
f55a0c31
RenderJS UI tests for Inventories.
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/license
0 → 100644
View file @
f55a0c31
GPL
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/template_format_version
0 → 100644
View file @
f55a0c31
1
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/template_path_list
0 → 100644
View file @
f55a0c31
portal_tests/renderjs_ui_stock_browser_zuite
portal_tests/renderjs_ui_stock_browser_zuite/**
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/template_skin_id_list
0 → 100644
View file @
f55a0c31
erp5_pdm_renderjs_ui_test
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/template_test_id_list
0 → 100644
View file @
f55a0c31
test.erp5.testFunctionalRJSStockBrowser
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/test_dependency_list
0 → 100644
View file @
f55a0c31
erp5_full_text_mroonga_catalog
erp5_configurator_standard_trade_template
erp5_simulation_test
erp5_accounting
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/title
0 → 100644
View file @
f55a0c31
erp5_pdm_renderjs_ui_test
\ No newline at end of file
bt5/erp5_pdm_renderjs_ui_test/bt/version
0 → 100644
View file @
f55a0c31
0.1
\ 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