Commit cdf806ad authored by Jérome Perrin's avatar Jérome Perrin

officejs_support_request_ui_test: test for worklists

parent 8fb824ae
<?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>
<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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment