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
1
Issues
1
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
Roque
erp5
Commits
cb49c4ca
Commit
cb49c4ca
authored
Dec 21, 2017
by
Boris Kocherov
Committed by
Romain Courteaud
Jan 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs_ui_test] add replication OnlyOffice.cell test
replication test
parent
e88b130f
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
655 additions
and
0 deletions
+655
-0
bt5/erp5_officejs_ui_test/PathTemplateItem/document_module/test_officejs_onlyoffice_spreadsheet_replication_xlsy.xlsy
...est_officejs_onlyoffice_spreadsheet_replication_xlsy.xlsy
+0
-0
bt5/erp5_officejs_ui_test/PathTemplateItem/document_module/test_officejs_onlyoffice_spreadsheet_replication_xlsy.xml
...test_officejs_onlyoffice_spreadsheet_replication_xlsy.xml
+332
-0
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyfficeSpreadsheetErp5Synchronization.xml
...eet_zuite/testOnlyfficeSpreadsheetErp5Synchronization.xml
+58
-0
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyfficeSpreadsheetErp5Synchronization.zpt
...eet_zuite/testOnlyfficeSpreadsheetErp5Synchronization.zpt
+144
-0
bt5/erp5_officejs_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_ui_test/Zuite_CommonTemplateForOnlyOfficeCell.xml
...fficejs_ui_test/Zuite_CommonTemplateForOnlyOfficeCell.xml
+79
-0
bt5/erp5_officejs_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_ui_test/Zuite_CommonTemplateForOnlyOfficeCell.zpt
...fficejs_ui_test/Zuite_CommonTemplateForOnlyOfficeCell.zpt
+42
-0
No files found.
bt5/erp5_officejs_ui_test/PathTemplateItem/document_module/test_officejs_onlyoffice_spreadsheet_replication_xlsy.xlsy
0 → 100644
View file @
cb49c4ca
File added
bt5/erp5_officejs_ui_test/PathTemplateItem/document_module/test_officejs_onlyoffice_spreadsheet_replication_xlsy.xml
0 → 100644
View file @
cb49c4ca
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyfficeSpreadsheetErp5Synchronization.xml
0 → 100644
View file @
cb49c4ca
<?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>
testOnlyfficeSpreadsheetErp5Synchronization
</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_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyfficeSpreadsheetErp5Synchronization.zpt
0 → 100644
View file @
cb49c4ca
<html
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
xmlns:metal=
"http://xml.zope.org/namespaces/metal"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
Test OfficeJS UI
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr>
<td
rowspan=
"1"
colspan=
"3"
>
Test OfficeJS UI
</td>
</tr>
</thead>
<tbody>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'test.officejs.onlyoffice.spreadsheet.replication.xlsy.%s' % DateTime().strftime('%Y%m%d%H%M%S')"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
store
</td>
<td>
ooffice_spreadsheet
</td>
<td>
test_url
</td>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/document_module/test_officejs_onlyoffice_spreadsheet_replication_xlsy
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Spreadsheet.
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=field_my_title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=field_my_title
</td>
<td>
${title}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_edit:method
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//span[text()='Metadata']/..
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=field_my_id
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
id
</td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/document_module/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/${test_url}/
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/choice_erp5_storage"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!--1-->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/open_document_with_title"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/click_to_content"
/>
<!-- first time after open -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load"
/>
<tal:block
tal:define=
"check_value string:1;
set_value string:2"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOfficeCell/macros/current_cell"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/save"
/>
<!-- XXX Romain -->
<!--tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/open_document_with_title"/>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/click_to_content"/>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load"/>
<tal:block tal:define="check_value string:2;
set_value string:2">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOfficeCell/macros/current_cell" />
</tal:block-->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/synchronize"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- XXX Romain -->
<!--tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/open_document_with_title"/>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/click_to_content"/>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load"/>
<tal:block tal:define="check_value string:2;
set_value string:2">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOfficeCell/macros/current_cell" />
</tal:block-->
<!-- if remove these two lines test passes -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/choice_erp5_storage"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!--2-->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/open_document_with_title"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load"
/>
<tal:block
tal:define=
"check_value string:2;
set_value string:3"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOfficeCell/macros/current_cell"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForOnlyOffice/macros/remove_document_by_id"
/>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_ui_test/Zuite_CommonTemplateForOnlyOfficeCell.xml
0 → 100644
View file @
cb49c4ca
<?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>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
description
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
text
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Common Template for PTZuite, it will reuse parts of the Listbox Zuite
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Zuite_CommonTemplateForOnlyOfficeCell
</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>
Common Template for All OnlyOffice Zuite
</unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_ui_test/Zuite_CommonTemplateForOnlyOfficeCell.zpt
0 → 100644
View file @
cb49c4ca
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<tal:block metal:define-macro="current_cell">
<tr>
<td colspan="3"><b tal:content="string:Check current cell=${check_value}"></b></td>
</tr>
<tr>
<td>assertValue</td>
<td>//textarea[@id='ce-cell-content']</td>
<td tal:content="check_value"></td>
</tr>
<tr>
<td colspan="3"><b tal:content="string:Set current cell=${set_value}"></b></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//textarea[@id='ce-cell-content' and not(contains(@class, "disabled"))]</td>
<td></td>
</tr>
<tr>
<td>fireEvent</td>
<td>//textarea[@id='ce-cell-content']</td>
<td>focus</td>
</tr>
<tr>
<td>fireEvent</td>
<td>//textarea[@id='ce-cell-content']</td>
<td>input</td>
</tr>
<tr>
<td>type</td>
<td>//textarea[@id='ce-cell-content']</td>
<td tal:content="set_value"></td>
</tr>
<tr>
<td>fireEvent</td>
<td>//textarea[@id='ce-cell-content']</td>
<td>input</td>
</tr>
</tal:block>
</tal:block>
\ 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