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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
preetwinder
erp5
Commits
44885291
Commit
44885291
authored
Aug 04, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs_ui_test] Update tests to follow officejs interface changes with rjs gadgets
parent
f4271a16
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1168 additions
and
656 deletions
+1168
-656
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSBookmarkManager.zpt
...l_tests/officejs_ui_zuite/testOfficeJSBookmarkManager.zpt
+141
-9
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSCribjs.xml
...tem/portal_tests/officejs_ui_zuite/testOfficeJSCribjs.xml
+0
-58
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSCribjs.zpt
...tem/portal_tests/officejs_ui_zuite/testOfficeJSCribjs.zpt
+0
-34
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSImageEditor.zpt
...ortal_tests/officejs_ui_zuite/testOfficeJSImageEditor.zpt
+104
-10
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSPdfViewer.zpt
.../portal_tests/officejs_ui_zuite/testOfficeJSPdfViewer.zpt
+105
-10
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSTextEditor.zpt
...portal_tests/officejs_ui_zuite/testOfficeJSTextEditor.zpt
+107
-8
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSTextEditorErp5Synchronization.zpt
...js_ui_zuite/testOfficeJSTextEditorErp5Synchronization.zpt
+48
-121
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSWebTableEditor.zpt
...al_tests/officejs_ui_zuite/testOfficeJSWebTableEditor.zpt
+104
-10
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSsvgEditor.zpt
.../portal_tests/officejs_ui_zuite/testOfficeJSsvgEditor.zpt
+104
-10
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentation.zpt
...tal_tests/officejs_ui_zuite/testOnlyfficePresentation.zpt
+126
-2
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentationGadget.xml
...sts/officejs_ui_zuite/testOnlyfficePresentationGadget.xml
+0
-58
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentationGadget.zpt
...sts/officejs_ui_zuite/testOnlyfficePresentationGadget.zpt
+0
-34
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheet.zpt
...rtal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheet.zpt
+132
-2
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheetGadget.xml
...ests/officejs_ui_zuite/testOnlyfficeSpreadsheetGadget.xml
+0
-58
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheetGadget.zpt
...ests/officejs_ui_zuite/testOnlyfficeSpreadsheetGadget.zpt
+0
-34
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeText.zpt
...Item/portal_tests/officejs_ui_zuite/testOnlyfficeText.zpt
+126
-2
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextErp5Synchronization.zpt
...fficejs_ui_zuite/testOnlyfficeTextErp5Synchronization.zpt
+71
-104
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextGadget.xml
...ortal_tests/officejs_ui_zuite/testOnlyfficeTextGadget.xml
+0
-58
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextGadget.zpt
...ortal_tests/officejs_ui_zuite/testOnlyfficeTextGadget.zpt
+0
-34
No files found.
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSBookmarkManager.zpt
View file @
44885291
...
@@ -22,6 +22,137 @@
...
@@ -22,6 +22,137 @@
<td></td>
<td></td>
</tr>
</tr>
<!-- Initialize -->
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/officejs_bookmark_manager?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<!-- Generic Officejs Test -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<td>
type
</td>
<td>
name=url_string
</td>
<td>
${base_url}
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<!-- Stop Generic -->
<tr>
<td>
waitForElementPresent
</td>
<td>
link=${base_url}
</td>
<td></td>
</tr>
<!-- Old Test For Bookmark, need adapt to new officejs.
<tr>
<tr>
<td>open</td>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
...
@@ -47,7 +178,7 @@
...
@@ -47,7 +178,7 @@
<td>1000</td>
<td>1000</td>
<td></td>
<td></td>
</tr>
</tr>
<
!-- Save 1st bookmark --
>
<
#-- Save 1st bookmark --#
>
<tr>
<tr>
<td>waitForElementPresent</td>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</td>
<td>//a[@data-i18n='Add']</td>
...
@@ -93,7 +224,7 @@
...
@@ -93,7 +224,7 @@
<td>//button[@data-i18n='Save']</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
<td></td>
</tr>
</tr>
<
!-- Save 2nd Bookmark --
>
<
#-- Save 2nd Bookmark --#
>
<tr>
<tr>
<td>click</td>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td>//button[@data-i18n='Menu']</td>
...
@@ -154,7 +285,7 @@
...
@@ -154,7 +285,7 @@
<td>//button[@data-i18n='Save']</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
<td></td>
</tr>
</tr>
<
!-- Search With Dispatcher and default redirection on bookmark--
>
<
#-- Search With Dispatcher and default redirection on bookmark--#
>
<tr>
<tr>
<td>click</td>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td>//button[@data-i18n='Menu']</td>
...
@@ -185,7 +316,7 @@
...
@@ -185,7 +316,7 @@
<td>//input[@data-i18n='[value]header-submit']</td>
<td>//input[@data-i18n='[value]header-submit']</td>
<td></td>
<td></td>
</tr>
</tr>
<
!--- Verify Search ---
>
<
#--- Verify Search ---#
>
<tr>
<tr>
<td>waitForElementPresent</td>
<td>waitForElementPresent</td>
<td>//h1[@class='test-script-title']</td>
<td>//h1[@class='test-script-title']</td>
...
@@ -196,7 +327,7 @@
...
@@ -196,7 +327,7 @@
<td>//h1[@class='test-script-title']</td>
<td>//h1[@class='test-script-title']</td>
<td>Title is : cloud</td>
<td>Title is : cloud</td>
</tr>
</tr>
<
!-- Add bookmark With Dispatcher Command--
>
<
#-- Add bookmark With Dispatcher Command--#
>
<tr>
<tr>
<td>open</td>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
...
@@ -262,7 +393,7 @@
...
@@ -262,7 +393,7 @@
<td>//button[@data-i18n='Save']</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
<td></td>
</tr>
</tr>
<
!--- Verify Search Command---
>
<
#--- Verify Search Command---#
>
<tr>
<tr>
<td>click</td>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td>//button[@data-i18n='Menu']</td>
...
@@ -303,7 +434,7 @@
...
@@ -303,7 +434,7 @@
<td>//h1[@class='test-script-title']</td>
<td>//h1[@class='test-script-title']</td>
<td>Title is : mysearchterm</td>
<td>Title is : mysearchterm</td>
</tr>
</tr>
<
!--- Set preferences ---
>
<
#--- Set preferences ---#
>
<tr>
<tr>
<td>open</td>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
...
@@ -354,7 +485,7 @@
...
@@ -354,7 +485,7 @@
<td>//button[@data-i18n='Save']</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
<td></td>
</tr>
</tr>
<
!--- Do search and display result list ---
>
<
#--- Do search and display result list ---#
>
<tr>
<tr>
<td>click</td>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td>//button[@data-i18n='Menu']</td>
...
@@ -390,7 +521,7 @@
...
@@ -390,7 +521,7 @@
<td>//table//tbody//tr//td</td>
<td>//table//tbody//tr//td</td>
<td></td>
<td></td>
</tr>
</tr>
<
!--- Do search and redirect on search engine ---
>
<
#--- Do search and redirect on search engine ---#
>
<tr>
<tr>
<td>open</td>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
...
@@ -446,6 +577,7 @@
...
@@ -446,6 +577,7 @@
<td>//h1[@class='test-script-title']</td>
<td>//h1[@class='test-script-title']</td>
<td>Title is : chocolate</td>
<td>Title is : chocolate</td>
</tr>
</tr>
-->
</tbody></table>
</tbody></table>
</body>
</body>
</html>
</html>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSCribjs.xml
deleted
100644 → 0
View file @
f4271a16
<?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>
testOfficeJSCribjs
</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_zuite/testOfficeJSCribjs.zpt
deleted
100644 → 0
View file @
f4271a16
<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"
/>
<!-- Clean Up -->
<tr>
<td>
open
</td>
<td>
${base_url}/bar_module/ListBoxZuite_reset
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Reset Successfully.
</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/officejs_cribjs/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSImageEditor.zpt
View file @
44885291
...
@@ -24,41 +24,135 @@
...
@@ -24,41 +24,135 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/officejs_image_editor
/
</td>
<td>
${base_url}/web_site_module/officejs_image_editor
?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<!-- Generic Officejs Test -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
500
</td>
<td>
link=Local is Enough
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//button[@data-i18n='
Local is Enough
']
</td>
<td>
//button[@data-i18n='
Save
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
1000
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<!-- Stop Generic -->
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//inpu
t
</td>
<td>
identifier=canvas_fron
t
</td>
<td></td>
<td></td>
</tr>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSPdfViewer.zpt
View file @
44885291
...
@@ -24,41 +24,136 @@
...
@@ -24,41 +24,136 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/officejs_pdf_viewer
/
</td>
<td>
${base_url}/web_site_module/officejs_pdf_viewer
?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<!-- Generic Officejs Test -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
1000
</td>
<td>
link=Local is Enough
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//button[@data-i18n='
Local is Enough
']
</td>
<td>
//button[@data-i18n='
Save
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
1000
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<!-- Stop Generic -->
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//input
</td>
<td>
identifier=viewerContainer
</td>
<td></td>
<td></td>
</tr>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSTextEditor.zpt
View file @
44885291
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
<head>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
Test OfficeJS UI
</title>
<title>
Test OfficeJS UI
</title>
<script
src=
"../../web_site_module/officejs_text_editor/rsvp.js"
></script>
<script
src=
"../../web_site_module/officejs_text_editor/jiodev.js"
></script>
</head>
</head>
<body>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
...
@@ -24,36 +26,133 @@
...
@@ -24,36 +26,133 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/officejs_text_editor
/development/#page=jio_configurator
</td>
<td>
${base_url}/web_site_module/officejs_text_editor
?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
500
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//input
</td>
<td>
identifier=cke_1_contents
</td>
<td></td>
<td></td>
</tr>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSTextEditorErp5Synchronization.zpt
View file @
44885291
...
@@ -29,82 +29,52 @@
...
@@ -29,82 +29,52 @@
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td>
link=Storages
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
500
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Storage Configuration']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Storage Configuration']
</td>
<td>
link=Storages
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//form[@class='select-erp5-form']/button[@data-i18n='ERP5']
</td>
<td>
link=Erp5
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//form[@class='select-erp5-form']/button[@data-i18n='ERP5']
</td>
<td>
link=Erp5
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//form[@class='erp5-configuration-form']
</td>
<td>
name=erp5_url
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
6000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
type
</td>
<td>
type
</td>
<td>
name=erp5_url
</td>
<td>
name=erp5_url
</td>
<td>
${base_url}/web_site_module/
officejs_text_editor/
</td>
<td>
${base_url}/web_site_module/
</td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//form[@class='erp5-configuration-form']//button[@data-i18n='Connect']
</td>
<td>
//button[@data-i18n='Proceed']
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
1000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Add
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Add
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//iframe
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
5000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -134,7 +104,7 @@
...
@@ -134,7 +104,7 @@
</tr>
</tr>
<tr>
<tr>
<td>
type
</td>
<td>
type
</td>
<td>
name
=description
</td>
<td>
identifier
=description
</td>
<td>
${description}
</td>
<td>
${description}
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -142,44 +112,30 @@
...
@@ -142,44 +112,30 @@
<td>
//button[@data-i18n='Save']
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<!-- Wait for search fixed
<td>
pause
</td>
<td>
3000
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<tr>
<td>waitForElementPresent</td>
<td>waitForElementPresent</td>
<td>
//a[@data-i18n='Document List']
</td>
<td>
name=search
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
type
</td>
<td>
//a[@data-i18n='Document List']
</td>
<td>
name=search
</td>
<td></td>
<td>
${title}
</td>
</tr>
</tr>
<tr>
<tr>
<td>waitForElementPresent</td>
<td>waitForElementPresent</td>
<td>
//
input[@name='search
']
</td>
<td>//
button[@data-i18n='Filter
']</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
type
</td>
<td>
name=search
</td>
<td>
${title}
</td>
</tr>
<tr>
<tr>
<td>click</td>
<td>click</td>
<td>
//
input[@data-i18n='[value]header-submit
']
</td>
<td>//
button[@data-i18n='Filter
']</td>
<td></td>
<td></td>
</tr>
</tr>
-->
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
3000
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -189,17 +145,12 @@
...
@@ -189,17 +145,12 @@
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//table/tbody/tr[1]/td[1]/a
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//iframe
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
5000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -212,39 +163,24 @@
...
@@ -212,39 +163,24 @@
<td>
title
</td>
<td>
title
</td>
<td>
${title}
</td>
<td>
${title}
</td>
</tr>
</tr>
<tr>
<td>
pause
</td>
<td>
1000
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
verifyValue
</td>
<td>
verifyValue
</td>
<td>
reference
</td>
<td>
reference
</td>
<td>
${reference}
</td>
<td>
${reference}
</td>
</tr>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
${description}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Storage Configuration']
</td>
<td>
identifier=description
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
verifyValue
</td>
<td>
//a[@data-i18n='Storage Configuration']
</td>
<td>
description
</td>
<td></td>
<td>
${description}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
click
</td>
<td>
//
a[@data-i18n='Synchronize
']
</td>
<td>
//
button[@data-i18n='Menu
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -252,14 +188,10 @@
...
@@ -252,14 +188,10 @@
<td>
//a[@data-i18n='Synchronize']
</td>
<td>
//a[@data-i18n='Synchronize']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<!-- Wait for search fixed
<td>
pause
</td>
<td>
10000
</td>
<td></td>
</tr>
<tr>
<tr>
<td>waitForElementPresent</td>
<td>waitForElementPresent</td>
<td>
//input[@name='search']
</td>
<td>
name=search
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -268,38 +200,38 @@
...
@@ -268,38 +200,38 @@
<td>${title}</td>
<td>${title}</td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
waitForElementPresent
</td>
<td>
//
input[@data-i18n='[value]header-submit
']
</td>
<td>//
button[@data-i18n='Filter
']</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
click
</td>
<td>
3000
</td>
<td>
//button[@data-i18n='Filter']
</td>
<td></td>
<td></td>
</tr>
</tr>
-->
<tr>
<tr>
<td>
assertTex
tPresent
</td>
<td>
waitForElemen
tPresent
</td>
<td>
${title}
</td>
<td>
//button[@data-i18n='Filter']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
waitForElementPresent
</td>
<td>
//table/tbody/tr[1]/td[1]/a
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
assertTex
tPresent
</td>
<td>
//iframe
</td>
<td>
${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
click
</td>
<td>
5000
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertTex
tPresent
</td>
<td>
waitForElemen
tPresent
</td>
<td>
${title}
</td>
<td>
identifier=title
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -307,20 +239,15 @@
...
@@ -307,20 +239,15 @@
<td>
title
</td>
<td>
title
</td>
<td>
${title}
</td>
<td>
${title}
</td>
</tr>
</tr>
<tr>
<td>
pause
</td>
<td>
1000
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
verifyValue
</td>
<td>
verifyValue
</td>
<td>
reference
</td>
<td>
reference
</td>
<td>
${reference}
</td>
<td>
${reference}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
assertTextPresent
</td>
<td>
verifyValue
</td>
<td>
description
</td>
<td>
${description}
</td>
<td>
${description}
</td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
...
...
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSWebTableEditor.zpt
View file @
44885291
...
@@ -24,41 +24,135 @@
...
@@ -24,41 +24,135 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/officejs_web_table_editor
/
</td>
<td>
${base_url}/web_site_module/officejs_web_table_editor
?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<!-- Generic Officejs Test -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
500
</td>
<td>
link=Local is Enough
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//button[@data-i18n='
Local is Enough
']
</td>
<td>
//button[@data-i18n='
Save
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
1000
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<!-- Stop Generic -->
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//inpu
t
</td>
<td>
identifier=jquery_sheet_gadge
t
</td>
<td></td>
<td></td>
</tr>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOfficeJSsvgEditor.zpt
View file @
44885291
...
@@ -24,41 +24,135 @@
...
@@ -24,41 +24,135 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/officejs_svg_editor
/
</td>
<td>
${base_url}/web_site_module/officejs_svg_editor
?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<!-- Generic Officejs Test -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
500
</td>
<td>
link=Local is Enough
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//button[@data-i18n='
Local is Enough
']
</td>
<td>
//button[@data-i18n='
Save
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
1000
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<!-- Stop Generic -->
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//input
</td>
<td>
identifier=workarea
</td>
<td></td>
<td></td>
</tr>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentation.zpt
View file @
44885291
...
@@ -24,11 +24,135 @@
...
@@ -24,11 +24,135 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/ooffice_presentation
/development/
</td>
<td>
${base_url}/web_site_module/ooffice_presentation
?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<!-- Generic Officejs Test -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Content
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Content
</td>
<td></td>
</tr>
<!-- Stop Generic -->
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=id_main
</td>
<td></td>
<td></td>
</tr>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentationGadget.xml
deleted
100644 → 0
View file @
f4271a16
<?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>
testOnlyfficePresentationGadget
</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_zuite/testOnlyfficePresentationGadget.zpt
deleted
100644 → 0
View file @
f4271a16
<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"
/>
<!-- Clean Up -->
<tr>
<td>
open
</td>
<td>
${base_url}/bar_module/ListBoxZuite_reset
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Reset Successfully.
</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/ooffice_presentation_gadget/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@class='loadmask']
</td>
<td></td>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheet.zpt
View file @
44885291
...
@@ -24,11 +24,141 @@
...
@@ -24,11 +24,141 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/ooffice_spreadsheet/
development/
</td>
<td>
${base_url}/web_site_module/ooffice_spreadsheet/
</td>
<td></td>
<td></td>
</tr>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/ooffice_text?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<!-- Generic Officejs Test -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Content
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Content
</td>
<td></td>
</tr>
<!-- Stop Generic -->
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
identifier=id_main
</td>
<td></td>
<td></td>
</tr>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheetGadget.xml
deleted
100644 → 0
View file @
f4271a16
<?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>
testOnlyfficeSpreadsheetGadget
</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_zuite/testOnlyfficeSpreadsheetGadget.zpt
deleted
100644 → 0
View file @
f4271a16
<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"
/>
<!-- Clean Up -->
<tr>
<td>
open
</td>
<td>
${base_url}/bar_module/ListBoxZuite_reset
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Reset Successfully.
</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/ooffice_spreadsheet_gadget/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@class='loadmask']
</td>
<td></td>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeText.zpt
View file @
44885291
...
@@ -24,11 +24,135 @@
...
@@ -24,11 +24,135 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/ooffice_text
/development/#page=jio_configurator
</td>
<td>
${base_url}/web_site_module/ooffice_text
?ignore_layout:int=1
&
editable_mode:int=1
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
field_my_id
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=Base_createCloneDocument:method
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
Created Clone Web Site
</td>
<td></td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
name=field_my_id
</td>
<td>
test_url
</td>
</tr>
<!-- Generic Officejs Test -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
runScript
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=ids:list
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=ids:list
</td>
<td>
${test_url}
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=manage_delObjects:method
</td>
<td></td>
</tr>
<!-- Offline Test -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${test_url}/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Local is Enough
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
store
</td>
<td
tal:content=
"python: 'Test Titre %s' % DateTime()"
>
Titre
</td>
<td>
title
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=title
</td>
<td>
${title}
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=Content
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
link=Content
</td>
<td></td>
</tr>
<!-- Stop Generic -->
<tr>
<td>
waitForElementPresent
</td>
<td>
identifier=id_main
</td>
<td></td>
<td></td>
</tr>
</tr>
\ No newline at end of file
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextErp5Synchronization.zpt
View file @
44885291
...
@@ -24,32 +24,27 @@
...
@@ -24,32 +24,27 @@
<!-- Initialize -->
<!-- Initialize -->
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
<td>
${base_url}/web_site_module/ooffice_text/
development/#page=jio_configurator
</td>
<td>
${base_url}/web_site_module/ooffice_text/
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresen
t
</td>
<td>
runScrip
t
</td>
<td>
//button[@data-i18n='Local is Enough']
</td>
<td>
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//form[@class='select-erp5-form']/button[@data-i18n='ERP5']
</td>
<td>
link=Erp5
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//form[@class='select-erp5-form']/button[@data-i18n='ERP5']
</td>
<td>
link=Erp5
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//form[@class='erp5-configuration-form']
</td>
<td>
name=erp5_url
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
6000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -59,42 +54,22 @@
...
@@ -59,42 +54,22 @@
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//form[@class='erp5-configuration-form']//button[@data-i18n='Connect']
</td>
<td>
name=submit
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
1000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Add
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Add']
</td>
<td>
link=Add
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
20000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//canvas[@id='id_target_cursor']
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@id='id-toolbar-btn-pageorient']
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
500
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -124,7 +99,7 @@
...
@@ -124,7 +99,7 @@
</tr>
</tr>
<tr>
<tr>
<td>
type
</td>
<td>
type
</td>
<td>
name
=description
</td>
<td>
identifier
=description
</td>
<td>
${description}
</td>
<td>
${description}
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -133,109 +108,120 @@
...
@@ -133,109 +108,120 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
3000
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Document List']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//a[@data-i18n='Document List']
</td>
<td>
link=Content
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//
input[@name='search
']
</td>
<td>
//
canvas[@id='id_target_cursor
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
typ
e
</td>
<td>
paus
e
</td>
<td>
name=search
</td>
<td>
1000
</td>
<td>
${title}
</td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//
input[@data-i18n='[value]header-submi
t']
</td>
<td>
//
button[@id='id-toolbar-btn-pageorien
t']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
pause
</td>
<td>
3
000
</td>
<td>
1
000
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertTextPresent
</td>
<td>
click
</td>
<td>
${title}
</td>
<td>
//button[@data-i18n='Save']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//table/tbody/tr[1]/td[1]/a
</td>
<td>
link=Properties
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//ifram
e
</td>
<td>
identifier=titl
e
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
click
</td>
<td>
5000
</td>
<td>
link=Document
</td>
<td></td>
<td></td>
</tr>
</tr>
<!-- Wait for search fixed
<tr>
<tr>
<td>
assertTex
tPresent
</td>
<td>
waitForElemen
tPresent</td>
<td>
${title}
</td>
<td>
name=search
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
verifyValu
e
</td>
<td>
typ
e</td>
<td>
title
</td>
<td>
name=search
</td>
<td>${title}</td>
<td>${title}</td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
1000
</td>
<td>
//button[@data-i18n='Filter']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
verifyValue
</td>
<td>
click
</td>
<td>
reference
</td>
<td>
//button[@data-i18n='Filter']
</td>
<td>
${reference}
</td>
<td></td>
</tr>
</tr>
-->
<tr>
<tr>
<td>
assertTex
tPresent
</td>
<td>
waitForElemen
tPresent
</td>
<td>
${description
}
</td>
<td>
link=${title
}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//button[@data-i18n='Menu']
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Storage Configuration']
</td>
<td>
identifier=title
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
assertTextPresent
</td>
<td>
//a[@data-i18n='Storage Configuration']
</td>
<td>
${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
verifyValue
</td>
<td>
//a[@data-i18n='Synchronize']
</td>
<td>
title
</td>
<td></td>
<td>
${title}
</td>
</tr>
<tr>
<td>
verifyValue
</td>
<td>
reference
</td>
<td>
${reference}
</td>
</tr>
<tr>
<td>
verifyValue
</td>
<td>
description
</td>
<td>
${description}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
...
@@ -243,13 +229,14 @@
...
@@ -243,13 +229,14 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
10000
</td>
<td>
//button[@data-i18n='Filter']
</td>
<td></td>
<td></td>
</tr>
</tr>
<!-- Wait for search fixed
<tr>
<tr>
<td>waitForElementPresent</td>
<td>waitForElementPresent</td>
<td>
//input[@name='search']
</td>
<td>
name=search
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -259,37 +246,22 @@
...
@@ -259,37 +246,22 @@
</tr>
</tr>
<tr>
<tr>
<td>click</td>
<td>click</td>
<td>
//
input[@data-i18n='[value]header-submit
']
</td>
<td>//
button[@data-i18n='Filter
']</td>
<td></td>
<td></td>
</tr>
</tr>
-->
<tr>
<tr>
<td>
pause
</td>
<td>
waitForElementPresent
</td>
<td>
3000
</td>
<td>
link=${title}
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//table/tbody/tr[1]/td[1]/a
</td>
<td>
link=${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//iframe
</td>
<td>
identifier=title
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
5000
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
${title}
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -297,20 +269,15 @@
...
@@ -297,20 +269,15 @@
<td>
title
</td>
<td>
title
</td>
<td>
${title}
</td>
<td>
${title}
</td>
</tr>
</tr>
<tr>
<td>
pause
</td>
<td>
1000
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
verifyValue
</td>
<td>
verifyValue
</td>
<td>
reference
</td>
<td>
reference
</td>
<td>
${reference}
</td>
<td>
${reference}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
assertTextPresent
</td>
<td>
verifyValue
</td>
<td>
description
</td>
<td>
${description}
</td>
<td>
${description}
</td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
open
</td>
<td>
open
</td>
...
...
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextGadget.xml
deleted
100644 → 0
View file @
f4271a16
<?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>
testOnlyfficeTextGadget
</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_zuite/testOnlyfficeTextGadget.zpt
deleted
100644 → 0
View file @
f4271a16
<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"
/>
<!-- Clean Up -->
<tr>
<td>
open
</td>
<td>
${base_url}/bar_module/ListBoxZuite_reset
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Reset Successfully.
</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/ooffice_text_gadget/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@class='loadmask']
</td>
<td></td>
</tr>
\ 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