Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
cdf806ad
Commit
cdf806ad
authored
Sep 07, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs_support_request_ui_test: test for worklists
parent
8fb824ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
151 additions
and
0 deletions
+151
-0
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testWorklist.xml
..._tests/officejs_support_request_ui_zuite/testWorklist.xml
+58
-0
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testWorklist.zpt
..._tests/officejs_support_request_ui_zuite/testWorklist.zpt
+93
-0
No files found.
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testWorklist.xml
0 → 100644
View file @
cdf806ad
<?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>
testWorklist
</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_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testWorklist.zpt
0 → 100644
View file @
cdf806ad
<html>
<head>
<title
tal:content=
"template/title"
>
The title
</title>
<meta
http-equiv=
"content-type"
content=
"text/html;charset=utf-8"
>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Worklists on support request front page
</td></tr>
</thead><tbody>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<!-- XXX this test expect support request module to contain only the support requests from erp5_officejs_support_request_ui_test business template. -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/erp5_officejs_support_request_ui/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@data-i18n="[value]Support Requests WorkList"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//section[@class="document_list"]//li[1]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//section[@class="document_list"]//li/a[contains(text(), "Support Requests to Open")]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<!-- document count -->
<td>
//section[@class="document_list"]//li/a[contains(text(), "Support Requests to Open")]/span[text() = 1]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//section[@class="document_list"]//li/a[contains(text(), "Support Requests to Close")]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//section[@class="document_list"]//li/a[contains(text(), "Support Requests to Close")]/span[text() = 1]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//section[@class="document_list"]//li/a[contains(text(), "Suspended Support Requests")]
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//section[@class="document_list"]//li/a[contains(text(), "Suspended Support Requests")]/span[text() = 1]
</td>
<td></td>
</tr>
<!-- clicking on one worklist open the module -->
<tr>
<td>
click
</td>
<td>
//section[@class="document_list"]//li/a[contains(text(), "Suspended Support Requests")]/span[text() = 1]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@class="ui-title"]/a[@data-i18n="Support Request Module"]
</td>
<td></td>
</tr>
<!-- The module is filtered according to worklist definition, so it shows one document -->
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[@data-i18n="Support Requests"]//span[@class="listboxloader"]
</td>
<td></td>
</tr>
<tr>
<td>
assertText
</td>
<td>
//h1[@data-i18n="Support Requests"]//span[@class="listboxloader"]
</td>
<td>
(1)
</td>
</tr>
<!-- Query editor buttons are also present -->
<tr>
<td>
waitForElementPresent
</td>
<td>
div.search_parsed_value > button:nth-of-type(3)
</td>
</tr>
</tbody></table>
</body>
</html>
\ 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