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
09748eed
Commit
09748eed
authored
Nov 05, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui_test] Add tests for history/selection navigation
parent
155c33aa
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1725 additions
and
4 deletions
+1725
-4
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormViewBackLink.xml
...renderjs_ui_page_templates_zuite/testFormViewBackLink.xml
+6
-1
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormViewEditableBackLink.xml
..._ui_page_templates_zuite/testFormViewEditableBackLink.xml
+6
-1
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormViewNextLink.xml
...renderjs_ui_page_templates_zuite/testFormViewNextLink.xml
+1
-1
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormViewPreviousLink.xml
...erjs_ui_page_templates_zuite/testFormViewPreviousLink.xml
+1
-1
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandHistoryPreviousJumpToPreviousContext.xml
...zuite/testCommandHistoryPreviousJumpToPreviousContext.xml
+245
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandHistoryPreviousUnknownHistory.xml
...router_zuite/testCommandHistoryPreviousUnknownHistory.xml
+121
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandHistoryPreviousWithoutHistory.xml
...router_zuite/testCommandHistoryPreviousWithoutHistory.xml
+121
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionNextJumpToNextDocument.xml
...uter_zuite/testCommandSelectionNextJumpToNextDocument.xml
+203
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionNextLastElement.xml
...s_ui_router_zuite/testCommandSelectionNextLastElement.xml
+167
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionNextUnknownSelection.xml
...router_zuite/testCommandSelectionNextUnknownSelection.xml
+121
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionNextWithoutSelection.xml
...router_zuite/testCommandSelectionNextWithoutSelection.xml
+121
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionPreviousFirstElement.xml
...router_zuite/testCommandSelectionPreviousFirstElement.xml
+167
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionPreviousJumpToPreviousDocument.xml
...te/testCommandSelectionPreviousJumpToPreviousDocument.xml
+203
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionPreviousUnknownSelection.xml
...er_zuite/testCommandSelectionPreviousUnknownSelection.xml
+121
-0
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionPreviousWithoutSelection.xml
...er_zuite/testCommandSelectionPreviousWithoutSelection.xml
+121
-0
No files found.
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormViewBackLink.xml
View file @
09748eed
...
...
@@ -80,7 +80,12 @@
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_page_front.html\']
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
\n
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormViewEditableBackLink.xml
View file @
09748eed
...
...
@@ -80,7 +80,12 @@
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_page_front.html\']
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
\n
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormViewNextLink.xml
View file @
09748eed
...
...
@@ -84,7 +84,7 @@
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assert
TextPresent
</td>
\n
<td>
waitFor
TextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_page_templates_zuite/testFormViewPreviousLink.xml
View file @
09748eed
...
...
@@ -84,7 +84,7 @@
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assert
TextPresent
</td>
\n
<td>
waitFor
TextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandHistoryPreviousJumpToPreviousContext.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Enter a search query to create a selection parameter -->
\n
<tr>
\n
<td>
type
</td>
\n
<td>
search
</td>
\n
<td>
title
</td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'header-submit\' and @type=\'submit\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
1000
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'field_listbox\']//a[text()=\'Title 1\' and contains(@href, \'#!index\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Edit
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- create a second history context by creating a subdocument -->
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Edit\' and contains(@href, \'#!change\') and contains(@href, \'n.editable=true\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Add\' and contains(@href, \'#!change\') and contains(@href, \'view%3Dcreate_a_document\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Add\' and contains(@href, \'#!change\') and contains(@href, \'view%3Dcreate_a_document\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//button[text()=\'Proceed\' and @type=\'submit\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//button[text()=\'Proceed\' and @type=\'submit\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Tabs\' and contains(@href, \'#!change\') and contains(@href, \'n.page=tab\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Tabs\' and contains(@href, \'#!change\') and contains(@href, \'n.page=tab\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_page_tab.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'m\']//a[text()=\'View\' and contains(@href, \'#!change\') and contains(@href, \'n.view=view\') and contains(@href, \'n.page=\') and contains(@href, \'n.editable=\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- We are on the foo line in non editable mode -->
\n
<tr>
\n
<td>
assertTextPresent
</td>
\n
<td>
Start Date
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- It should redirect to the foo in editable mode -->
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view_editable.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- It should redirect to the foo module with the search parameters -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'title\' and @type=\'text\' and @name=\'search\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandHistoryPreviousJumpToPreviousContext
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandHistoryPreviousUnknownHistory.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module/1?history=FOOBAR
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous history -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandHistoryPreviousUnknownHistory
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandHistoryPreviousWithoutHistory.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module/1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous history -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandHistoryPreviousWithoutHistory
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionNextJumpToNextDocument.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
\n
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/foo_module/ListBoxZuite_reset
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertTextPresent
</td>
\n
<td>
Reset Successfully.
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
open
</td>
\n
<!-- create a Foo -->
\n
<td>
${base_url}/foo_module/Foo_createObjects?start:int=1
&
num:int=3
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertTextPresent
</td>
\n
<td>
Created Successfully.
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/foo_module/Zuite_waitForActivities
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertTextPresent
</td>
\n
<td>
Done.
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Enter a search query to create a selection parameter -->
\n
<tr>
\n
<td>
type
</td>
\n
<td>
search
</td>
\n
<td>
title
</td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'header-submit\' and @type=\'submit\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
1000
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 3
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'field_listbox\']//a[text()=\'Title 3\' and contains(@href, \'#!index\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Edit
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- It should redirect to the previous document -->
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 2
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- It should redirect to the previous document -->
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandSelectionNextJumpToNextDocument
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionNextLastElement.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Enter a search query to create a selection parameter -->
\n
<tr>
\n
<td>
type
</td>
\n
<td>
search
</td>
\n
<td>
title
</td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'header-submit\' and @type=\'submit\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
1000
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'field_listbox\']//a[text()=\'Title 1\' and contains(@href, \'#!index\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Edit
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- It should redirect to the context of the selection if first -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'title\' and @type=\'text\' and @name=\'search\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandSelectionNextLastElement
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionNextUnknownSelection.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module/1?selection=FOOBAR
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandSelectionNextUnknownSelection
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionNextWithoutSelection.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module/1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandSelectionNextWithoutSelection
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionPreviousFirstElement.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Enter a search query to create a selection parameter -->
\n
<tr>
\n
<td>
type
</td>
\n
<td>
search
</td>
\n
<td>
title
</td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'header-submit\' and @type=\'submit\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
1000
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'field_listbox\']//a[text()=\'Title 1\' and contains(@href, \'#!index\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Edit
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- It should redirect to the context of the selection if first -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'title\' and @type=\'text\' and @name=\'search\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandSelectionPreviousFirstElement
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionPreviousJumpToPreviousDocument.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
\n
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/foo_module/ListBoxZuite_reset
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertTextPresent
</td>
\n
<td>
Reset Successfully.
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
open
</td>
\n
<!-- create a Foo -->
\n
<td>
${base_url}/foo_module/Foo_createObjects?start:int=1
&
num:int=3
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertTextPresent
</td>
\n
<td>
Created Successfully.
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/foo_module/Zuite_waitForActivities
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertTextPresent
</td>
\n
<td>
Done.
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Enter a search query to create a selection parameter -->
\n
<tr>
\n
<td>
type
</td>
\n
<td>
search
</td>
\n
<td>
title
</td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'header-submit\' and @type=\'submit\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
1000
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'field_listbox\']//a[text()=\'Title 1\' and contains(@href, \'#!index\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Edit
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- It should redirect to the previous document -->
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 2
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- It should redirect to the previous document -->
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 3
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandSelectionPreviousJumpToPreviousDocument
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionPreviousUnknownSelection.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module/1?selection=FOOBAR
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandSelectionPreviousUnknownSelection
</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_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_router_zuite/testCommandSelectionPreviousWithoutSelection.xml
0 → 100644
View file @
09748eed
<?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>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test Form View Previous Link
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Default Module View
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"here/PTZuite_CommonTemplate/macros/init"
/>
\n
\n
<tr>
\n
<td>
open
</td>
\n
<td>
${base_url}/web_site_module/renderjs_runner/#/foo_module/1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Wait for gadget to be loaded -->
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_view.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Title 1
</td>
\n
<td></td>
\n
</tr>
\n
\n
<!-- Header has a link to the previous document in selection -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
//div[@data-gadget-scope=\'header\']//a[text()=\'Previous\' and contains(@href, \'#!selection_previous\')]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForElementPresent
</td>
\n
<td>
//div[@data-gadget-url=\'${base_url}/web_site_module/renderjs_runner/gadget_erp5_pt_form_list.html\']
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Foos
</td>
\n
<td></td>
\n
</tr>
\n
\n
</tbody></table>
\n
</body>
\n
</html>
]]>
</unicode>
</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>
testCommandSelectionPreviousWithoutSelection
</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>
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