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
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
4fcbb0f3
Commit
4fcbb0f3
authored
Nov 22, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs_support_request_ui_test: test "Coment {Date,Author}" colums on frontpage
parent
f665c90e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
0 deletions
+121
-0
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testLatestPostOnFrontPage.xml
...js_support_request_ui_zuite/testLatestPostOnFrontPage.xml
+58
-0
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testLatestPostOnFrontPage.zpt
...js_support_request_ui_zuite/testLatestPostOnFrontPage.zpt
+63
-0
No files found.
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testLatestPostOnFrontPage.xml
0 → 100644
View file @
4fcbb0f3
<?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>
testLatestPostOnFrontPage
</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>
Test "Comment Date" and "Comment Author" on Front Page
</unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testLatestPostOnFrontPage.zpt
0 → 100644
View file @
4fcbb0f3
<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"
tal:content=
"template/title"
>
Support Request Zuite
</td></tr>
</thead><tbody>
<tal:block
metal:use-macro=
"here/Zuite_SupportRequestUITemplate/macros/init"
/>
<tr><td
colspan=
"3"
><b>
Post a new SR message
</b></td></tr>
<tr><td>
open
</td>
<td>
${base_url}/web_site_module/erp5_officejs_support_request_ui/
</td><td></td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//input[@data-i18n='[value]Submit New Support Request']
</td><td></td></tr>
<tr><td>
click
</td>
<td>
//input[@data-i18n='[value]Submit New Support Request']
</td><td></td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//input[@data-i18n="[value]Proceed"]
</td><td></td></tr>
<tr><td>
type
</td>
<td>
//input[@name='field_your_title']
</td>
<td>
testLatestPostOnFrontPage
</td></tr>
<tr><td>
select
</td>
<td>
field_your_project
</td>
<td>
RobotMaking
</td></tr>
<tr><td>
waitForTextPresent
</td>
<td>
FeatureRequire
</td></tr>
<tr><td>
select
</td>
<td>
field_your_resource
</td>
<td>
FeatureRequire
</td></tr>
<tal:block
tal:define=
"text_content string:Post test"
>
<tal:block
metal:use-macro=
"container/Zuite_CommonTemplateForRenderjsUi/macros/type_ckeditor_text_content"
/></tal:block>
<tr><td>
click
</td>
<td>
//input[@data-i18n='[value]Proceed']
</td><td></td></tr>
<tr><td>
waitForText
</td>
<td>
//ol[@id="post_list"]//li/p
</td>
<td>
Post test
</td></tr>
<tr><td
colspan=
"3"
><b>
Go back ot front page and check "latest post" columns
</b></td></tr>
<tr><td>
openAndWait
</td>
<td>
${base_url}/Zuite_waitForActivities
</td><td></td></tr>
<tr><td>
waitForTextPresent
</td>
<td>
Done.
</td><td></td></tr>
<tr><td>
open
</td>
<td>
${base_url}/web_site_module/erp5_officejs_support_request_ui/
</td><td></td></tr>
<tr><td>
waitForText
</td>
<td>
//div[@class="document_table"]//tr[1]/td[1]
</td>
<td>
testLatestPostOnFrontPage
</td></tr>
<tr><td>
assertText
</td>
<td>
//div[@class="document_table"]//tr[1]/td[5]
</td>
<td
tal:content=
"python: 'glob:*{}*'.format(modules['DateTime'].DateTime().year())"
></td></tr>
<tr><td>
assertText
</td>
<td>
//div[@class="document_table"]//tr[1]/td[6]
</td>
<td>
A1 Corporation
</td></tr>
<!-- because this test run as a ZODB user, the post author is the organisation -->
</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