Commit 44885291 authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs_ui_test] Update tests to follow officejs interface changes with rjs gadgets

parent f4271a16
......@@ -22,6 +22,137 @@
<td></td>
</tr>
<!-- 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>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
......@@ -47,7 +178,7 @@
<td>1000</td>
<td></td>
</tr>
<!-- Save 1st bookmark -->
<#-- Save 1st bookmark --#>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</td>
......@@ -93,7 +224,7 @@
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<!-- Save 2nd Bookmark -->
<#-- Save 2nd Bookmark --#>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
......@@ -154,7 +285,7 @@
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<!-- Search With Dispatcher and default redirection on bookmark-->
<#-- Search With Dispatcher and default redirection on bookmark--#>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
......@@ -185,7 +316,7 @@
<td>//input[@data-i18n='[value]header-submit']</td>
<td></td>
</tr>
<!--- Verify Search --->
<#--- Verify Search ---#>
<tr>
<td>waitForElementPresent</td>
<td>//h1[@class='test-script-title']</td>
......@@ -196,7 +327,7 @@
<td>//h1[@class='test-script-title']</td>
<td>Title is : cloud</td>
</tr>
<!-- Add bookmark With Dispatcher Command-->
<#-- Add bookmark With Dispatcher Command--#>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
......@@ -262,7 +393,7 @@
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<!--- Verify Search Command--->
<#--- Verify Search Command---#>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
......@@ -303,7 +434,7 @@
<td>//h1[@class='test-script-title']</td>
<td>Title is : mysearchterm</td>
</tr>
<!--- Set preferences --->
<#--- Set preferences ---#>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
......@@ -354,7 +485,7 @@
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<!--- Do search and display result list --->
<#--- Do search and display result list ---#>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
......@@ -390,7 +521,7 @@
<td>//table//tbody//tr//td</td>
<td></td>
</tr>
<!--- Do search and redirect on search engine --->
<#--- Do search and redirect on search engine ---#>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
......@@ -446,6 +577,7 @@
<td>//h1[@class='test-script-title']</td>
<td>Title is : chocolate</td>
</tr>
-->
</tbody></table>
</body>
</html>
\ No newline at end of file
<?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>
<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
......@@ -24,41 +24,135 @@
<!-- Initialize -->
<tr>
<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>
</tr>
<tr>
<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>pause</td>
<td>500</td>
<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='Local is Enough']</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<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>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<!-- Stop Generic -->
<tr>
<td>waitForElementPresent</td>
<td>//input</td>
<td>identifier=canvas_front</td>
<td></td>
</tr>
\ No newline at end of file
......@@ -24,41 +24,136 @@
<!-- Initialize -->
<tr>
<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>
</tr>
<tr>
<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>pause</td>
<td>1000</td>
<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='Local is Enough']</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<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>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<!-- Stop Generic -->
<tr>
<td>waitForElementPresent</td>
<td>//input</td>
<td>identifier=viewerContainer</td>
<td></td>
</tr>
\ No newline at end of file
......@@ -3,6 +3,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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>
<body>
<table cellpadding="1" cellspacing="1" border="1">
......@@ -24,36 +26,133 @@
<!-- Initialize -->
<tr>
<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>
</tr>
<tr>
<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>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td>waitForElementPresent</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Local is Enough']</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input</td>
<td>identifier=cke_1_contents</td>
<td></td>
</tr>
\ No newline at end of file
......@@ -29,82 +29,52 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</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>link=Storages</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Storage Configuration']</td>
<td>link=Storages</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//form[@class='select-erp5-form']/button[@data-i18n='ERP5']</td>
<td>link=Erp5</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//form[@class='select-erp5-form']/button[@data-i18n='ERP5']</td>
<td>link=Erp5</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//form[@class='erp5-configuration-form']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>6000</td>
<td>name=erp5_url</td>
<td></td>
</tr>
<tr>
<td>type</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>
<td>click</td>
<td>//form[@class='erp5-configuration-form']//button[@data-i18n='Connect']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td>//button[@data-i18n='Proceed']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Add</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Add</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//iframe</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td>identifier=title</td>
<td></td>
</tr>
<tr>
......@@ -134,7 +104,7 @@
</tr>
<tr>
<td>type</td>
<td>name=description</td>
<td>identifier=description</td>
<td>${description}</td>
</tr>
<tr>
......@@ -142,44 +112,30 @@
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>3000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<!-- Wait for search fixed
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Document List']</td>
<td>name=search</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Document List']</td>
<td></td>
<td>type</td>
<td>name=search</td>
<td>${title}</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='search']</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=search</td>
<td>${title}</td>
</tr>
<tr>
<td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
</tr> -->
<tr>
<td>pause</td>
<td>3000</td>
<td>waitForElementPresent</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
......@@ -189,17 +145,12 @@
</tr>
<tr>
<td>click</td>
<td>//table/tbody/tr[1]/td[1]/a</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//iframe</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td>identifier=title</td>
<td></td>
</tr>
<tr>
......@@ -212,39 +163,24 @@
<td>title</td>
<td>${title}</td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>reference</td>
<td>${reference}</td>
</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>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Storage Configuration']</td>
<td>identifier=description</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Storage Configuration']</td>
<td></td>
<td>verifyValue</td>
<td>description</td>
<td>${description}</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Synchronize']</td>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
......@@ -252,14 +188,10 @@
<td>//a[@data-i18n='Synchronize']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<!-- Wait for search fixed
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='search']</td>
<td>name=search</td>
<td></td>
</tr>
<tr>
......@@ -268,38 +200,38 @@
<td>${title}</td>
</tr>
<tr>
<td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>3000</td>
<td>click</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
</tr> -->
<tr>
<td>assertTextPresent</td>
<td>${title}</td>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table/tbody/tr[1]/td[1]/a</td>
<td>waitForElementPresent</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//iframe</td>
<td>assertTextPresent</td>
<td>${title}</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td>click</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${title}</td>
<td>waitForElementPresent</td>
<td>identifier=title</td>
<td></td>
</tr>
<tr>
......@@ -307,20 +239,15 @@
<td>title</td>
<td>${title}</td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>reference</td>
<td>${reference}</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>verifyValue</td>
<td>description</td>
<td>${description}</td>
<td></td>
</tr>
<tr>
<td>open</td>
......
......@@ -24,41 +24,135 @@
<!-- Initialize -->
<tr>
<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>
</tr>
<tr>
<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>pause</td>
<td>500</td>
<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='Local is Enough']</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<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>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<!-- Stop Generic -->
<tr>
<td>waitForElementPresent</td>
<td>//input</td>
<td>identifier=jquery_sheet_gadget</td>
<td></td>
</tr>
\ No newline at end of file
......@@ -24,41 +24,135 @@
<!-- Initialize -->
<tr>
<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>
</tr>
<tr>
<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>pause</td>
<td>500</td>
<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='Local is Enough']</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<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>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Content</td>
<td></td>
</tr>
<!-- Stop Generic -->
<tr>
<td>waitForElementPresent</td>
<td>//input</td>
<td>identifier=workarea</td>
<td></td>
</tr>
\ No newline at end of file
......@@ -24,11 +24,135 @@
<!-- Initialize -->
<tr>
<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>
</tr>
<tr>
<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>
</tr>
\ No newline at end of file
<?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>
<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
......@@ -24,11 +24,141 @@
<!-- Initialize -->
<tr>
<td>open</td>
<td>${base_url}/web_site_module/ooffice_spreadsheet/development/</td>
<td>${base_url}/web_site_module/ooffice_spreadsheet/</td>
<td></td>
</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>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Local is Enough']</td>
<td>identifier=id_main</td>
<td></td>
</tr>
\ No newline at end of file
<?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>
<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
......@@ -24,11 +24,135 @@
<!-- Initialize -->
<tr>
<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>
</tr>
<tr>
<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>
</tr>
\ No newline at end of file
......@@ -24,32 +24,27 @@
<!-- Initialize -->
<tr>
<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>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Local is Enough']</td>
<td>runScript</td>
<td>window.indexedDB.deleteDatabase('jio:setting')</td>
<td></td>
</tr>
<tr>
<tr>
<td>waitForElementPresent</td>
<td>//form[@class='select-erp5-form']/button[@data-i18n='ERP5']</td>
<td>link=Erp5</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//form[@class='select-erp5-form']/button[@data-i18n='ERP5']</td>
<td>link=Erp5</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//form[@class='erp5-configuration-form']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>6000</td>
<td>name=erp5_url</td>
<td></td>
</tr>
<tr>
......@@ -59,42 +54,22 @@
</tr>
<tr>
<td>click</td>
<td>//form[@class='erp5-configuration-form']//button[@data-i18n='Connect']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td>name=submit</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</td>
<td>link=Add</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Add']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>20000</td>
<td>link=Add</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//canvas[@id='id_target_cursor']</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>identifier=title</td>
<td></td>
</tr>
<tr>
......@@ -124,7 +99,7 @@
</tr>
<tr>
<td>type</td>
<td>name=description</td>
<td>identifier=description</td>
<td>${description}</td>
</tr>
<tr>
......@@ -133,109 +108,120 @@
<td></td>
</tr>
<tr>
<td>pause</td>
<td>3000</td>
<td>waitForElementPresent</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Document List']</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Document List']</td>
<td>link=Content</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='search']</td>
<td>//canvas[@id='id_target_cursor']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=search</td>
<td>${title}</td>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td>
<td>//button[@id='id-toolbar-btn-pageorient']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>3000</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${title}</td>
<td>click</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table/tbody/tr[1]/td[1]/a</td>
<td>link=Properties</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//iframe</td>
<td>identifier=title</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td>click</td>
<td>link=Document</td>
<td></td>
</tr>
<!-- Wait for search fixed
<tr>
<td>assertTextPresent</td>
<td>${title}</td>
<td>waitForElementPresent</td>
<td>name=search</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>title</td>
<td>type</td>
<td>name=search</td>
<td>${title}</td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>reference</td>
<td>${reference}</td>
</tr>
<td>click</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr> -->
<tr>
<td>assertTextPresent</td>
<td>${description}</td>
<td>waitForElementPresent</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Storage Configuration']</td>
<td>identifier=title</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Storage Configuration']</td>
<td>assertTextPresent</td>
<td>${title}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Synchronize']</td>
<td></td>
<td>verifyValue</td>
<td>title</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>
<td>click</td>
......@@ -243,13 +229,14 @@
<td></td>
</tr>
<tr>
<td>pause</td>
<td>10000</td>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
<!-- Wait for search fixed
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='search']</td>
<td>name=search</td>
<td></td>
</tr>
<tr>
......@@ -259,37 +246,22 @@
</tr>
<tr>
<td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
</tr> -->
<tr>
<td>pause</td>
<td>3000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${title}</td>
<td>waitForElementPresent</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table/tbody/tr[1]/td[1]/a</td>
<td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//iframe</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${title}</td>
<td>identifier=title</td>
<td></td>
</tr>
<tr>
......@@ -297,20 +269,15 @@
<td>title</td>
<td>${title}</td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>reference</td>
<td>${reference}</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>verifyValue</td>
<td>description</td>
<td>${description}</td>
<td></td>
</tr>
<tr>
<td>open</td>
......
<?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>
<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
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