Commit 2bb706f4 authored by Vincent Bechu's avatar Vincent Bechu

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

parent 7d1d89e6
...@@ -24,43 +24,94 @@ ...@@ -24,43 +24,94 @@
<!-- Initialize --> <!-- Initialize -->
<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?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> <td></td>
</tr> </tr>
<tr> <tr>
<td>pause</td> <td>verifyTextPresent</td>
<td>500</td> <td>Created Clone Web Site</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>storeValue</td>
<td>//button[@data-i18n='Local is Enough']</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> <td></td>
</tr> </tr>
<tr> <tr>
<td>pause</td> <td>runScript</td>
<td>1000</td> <td>
window.indexedDB.deleteDatabase('jio:setting');
window.indexedDB.deleteDatabase('jio:local_default')
</td>
<td></td> <td></td>
</tr> </tr>
<!-- Save 1st bookmark -->
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</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> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Add']</td> <td>link=Local is Enough</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input</td> <td>link=Add</td>
<td></td>
</tr>
<!-- Save 1st bookmark -->
<tr>
<td>click</td>
<td>link=Add</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -75,17 +126,17 @@ ...@@ -75,17 +126,17 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='title']</td> <td>identifier=title</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='title']</td> <td>name=title</td>
<td>${title_1}</td> <td>${title_1}</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='url_string']</td> <td>name=url_string</td>
<td>${url_1}</td> <td>${url_1}</td>
</tr> </tr>
<tr> <tr>
...@@ -93,35 +144,15 @@ ...@@ -93,35 +144,15 @@
<td>//button[@data-i18n='Save']</td> <td>//button[@data-i18n='Save']</td>
<td></td> <td></td>
</tr> </tr>
<!-- Save 2nd Bookmark -->
<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='Bookmark List']</td> <td>link=Add</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Bookmark List']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</td>
<td></td> <td></td>
</tr> </tr>
<!-- Save 2nd Bookmark -->
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Add']</td> <td>link=Add</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -136,17 +167,17 @@ ...@@ -136,17 +167,17 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='title']</td> <td>identifier=title</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='title']</td> <td>name=title</td>
<td>${title_2}</td> <td>${title_2}</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='url_string']</td> <td>name=url_string</td>
<td>${url_2}</td> <td>${url_2}</td>
</tr> </tr>
<tr> <tr>
...@@ -154,12 +185,48 @@ ...@@ -154,12 +185,48 @@
<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--> <!-- Verify Search -->
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Filter']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@role='main']//div[@data-gadget-scope='erp5_searchfield']//input[@name='search']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//div[@role='main']//div[@data-gadget-scope='erp5_searchfield']//input[@name='search']</td>
<td>${title_2}</td>
</tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//button[@data-i18n='Menu']</td> <td>//div[@role='main']//div[@data-gadget-scope='erp5_searchfield']//button[@type='submit']</td>
<td></td>
</tr>
<tr> <!-- Poor cats ... find another way -->
<td>pause</td>
<td>2000</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>link=${title_2}</td>
<td></td>
</tr>
<tr>
<td>assertFailureOnNext</td>
<td>false</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>verifyElementPresent</td>
<td>link=${title_1}</td>
<td></td>
</tr>
<!-- Search With Dispatcher and default redirection on bookmark -->
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Search']</td> <td>//a[@data-i18n='Search']</td>
...@@ -172,20 +239,24 @@ ...@@ -172,20 +239,24 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='search']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@role='main']//input[@name='search']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='search']</td> <td>//div[@role='main']//input[@name='search']</td>
<td>cloud</td> <td>cloud</td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<!--- 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,20 +267,10 @@ ...@@ -196,20 +267,10 @@
<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/${test_url}/</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -223,28 +284,28 @@ ...@@ -223,28 +284,28 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>pause</td> <td>waitForElementPresent</td>
<td>500</td> <td>//button[@data-i18n='Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='search']</td> <td>//div[@role='main']//input[@name='search']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='search']</td> <td>//div[@role='main']//input[@name='search']</td>
<td>!add ${base_url}/ERP5Site_printParameterAsHTMLTitle?parameter=</td> <td>!add ${base_url}/ERP5Site_printParameterAsHTMLTitle?parameter=</td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='title']</td> <td>identifier=title</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -262,12 +323,12 @@ ...@@ -262,12 +323,12 @@
<td>//button[@data-i18n='Save']</td> <td>//button[@data-i18n='Save']</td>
<td></td> <td></td>
</tr> </tr>
<!--- Verify Search Command--->
<tr> <tr>
<td>click</td> <td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td> <td>link=Add</td>
<td></td> <td></td>
</tr> </tr>
<!--- Verify Search Command -->
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Search']</td> <td>//a[@data-i18n='Search']</td>
...@@ -280,17 +341,22 @@ ...@@ -280,17 +341,22 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='search']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@role='main']//input[@name='search']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='search']</td> <td>//div[@role='main']//input[@name='search']</td>
<td>!search mysearchterm</td> <td>!search mysearchterm</td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -303,20 +369,10 @@ ...@@ -303,20 +369,10 @@
<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/${test_url}/</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -354,15 +410,9 @@ ...@@ -354,15 +410,9 @@
<td>//button[@data-i18n='Save']</td> <td>//button[@data-i18n='Save']</td>
<td></td> <td></td>
</tr> </tr>
<!--- Do search and display result list --->
<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='Search']</td> <td>css=div.visible[data-gadget-scope="notification"]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -372,68 +422,22 @@ ...@@ -372,68 +422,22 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='search']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name='search']</td>
<td>cloud</td>
</tr>
<tr>
<td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//table//tbody//tr//td</td>
<td></td>
</tr>
<!--- Do search and redirect on search engine --->
<tr>
<td>open</td>
<td>${base_url}/web_site_module/officejs_bookmark_manager/</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</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='Search']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Search']</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>//input[@name='search']</td> <td>//div[@role='main']//input[@name='search']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name='search']</td> <td>//div[@role='main']//input[@name='search']</td>
<td>chocolate</td> <td>chocolate</td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
......
<?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 @@ ...@@ -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>//input</td> <td>identifier=canvas_front</td>
<td></td> <td></td>
</tr> </tr>
\ No newline at end of file
...@@ -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
...@@ -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
...@@ -29,87 +29,57 @@ ...@@ -29,87 +29,57 @@
</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> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//button[@data-i18n='Menu']</td> <td>link=Storages</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Storage Configuration']</td> <td>link=Erp5</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Storage Configuration']</td> <td>link=Erp5</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>name=erp5_url</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//form[@class='select-erp5-form']/button[@data-i18n='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></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>
<td>store</td> <td>store</td>
<td tal:content="python: 'Test Titre %s' % DateTime()">Titre</td> <td>Titre</td>
<td>title</td> <td>title</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,65 @@ ...@@ -142,44 +112,65 @@
<td>//button[@data-i18n='Save']</td> <td>//button[@data-i18n='Save']</td>
<td></td> <td></td>
</tr> </tr>
<!-- Verify Search, add another document -->
<tr> <tr>
<td>pause</td> <td>waitForElementPresent</td>
<td>3000</td> <td>//a[@data-i18n='Add']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//button[@data-i18n='Menu']</td> <td>//a[@data-i18n='Add']</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>store</td>
<td>search</td>
<td>search</td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Document List']</td> <td>identifier=title</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>type</td>
<td>name=reference</td>
<td>${search}</td>
</tr>
<tr>
<td>type</td>
<td>name=title</td>
<td>${search}</td>
</tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Document List']</td> <td>//button[@data-i18n='Save']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='search']</td> <td>//div[@role='main']//div[@data-gadget-scope='erp5_searchfield']//input[@name='search']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>name=search</td> <td>//div[@role='main']//div[@data-gadget-scope='erp5_searchfield']//input[@name='search']</td>
<td>${title}</td> <td>${title}</td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//input[@data-i18n='[value]header-submit']</td> <td>//div[@role='main']//div[@data-gadget-scope='erp5_searchfield']//button[@type='submit']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr> <!-- Poor cats ... find another way -->
<td>pause</td> <td>pause</td>
<td>3000</td> <td>2000</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>link=${title}</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -188,18 +179,23 @@ ...@@ -188,18 +179,23 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>assertFailureOnNext</td>
<td>//table/tbody/tr[1]/td[1]/a</td> <td>false</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>verifyElementPresent</td>
<td>//iframe</td> <td>link=${search}</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>pause</td> <td>click</td>
<td>5000</td> <td>link=${title}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>identifier=title</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -212,39 +208,24 @@ ...@@ -212,39 +208,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 +233,10 @@ ...@@ -252,14 +233,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 +245,38 @@ ...@@ -268,38 +245,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>assertTextPresent</td> <td>waitForElementPresent</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>waitForElementPresent</td> <td>assertTextPresent</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>assertTextPresent</td> <td>waitForElementPresent</td>
<td>${title}</td> <td>identifier=title</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -307,20 +284,15 @@ ...@@ -307,20 +284,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>
......
...@@ -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>//input</td> <td>identifier=jquery_sheet_gadget</td>
<td></td> <td></td>
</tr> </tr>
\ No newline at end of file
...@@ -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
...@@ -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
<?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 @@ ...@@ -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
<?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 @@ ...@@ -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
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<body> <body>
<table cellpadding="1" cellspacing="1" border="1"> <table cellpadding="1" cellspacing="1" border="1">
<thead> <thead>
<tr><td rowspan="1" colspan="3">Test OfficeJS UI (expected failure)</td></tr> <tr><td rowspan="1" colspan="3">Test OfficeJS UI</td></tr>
</thead><tbody> </thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> <tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Clean Up --> <!-- Clean Up -->
...@@ -24,32 +24,33 @@ ...@@ -24,32 +24,33 @@
<!-- 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>waitForElementPresent</td> <td>runScript</td>
<td>//button[@data-i18n='Local is Enough']</td> <td>window.indexedDB.deleteDatabase('jio:setting')</td>
<td></td> <td></td>
</tr> </tr>
<tr> <!-- sometimes it take a bit more than 90s for install -->
<td>waitForElementPresent</td> <tr>
<td>//form[@class='select-erp5-form']/button[@data-i18n='ERP5']</td> <td>pause</td>
<td>10000</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</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>waitForElementPresent</td> <td>click</td>
<td>//form[@class='erp5-configuration-form']</td> <td>link=Erp5</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>pause</td> <td>waitForElementPresent</td>
<td>6000</td> <td>name=erp5_url</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -59,42 +60,22 @@ ...@@ -59,42 +60,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 +105,7 @@ ...@@ -124,7 +105,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 +114,120 @@ ...@@ -133,109 +114,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>type</td> <td>pause</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-submit']</td> <td>//button[@id='id-toolbar-btn-pageorient']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>pause</td> <td>pause</td>
<td>3000</td> <td>1000</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>//iframe</td> <td>identifier=title</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>assertTextPresent</td> <td>waitForElementPresent</td>
<td>${title}</td> <td>name=search</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyValue</td> <td>type</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>assertTextPresent</td> <td>waitForElementPresent</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 +235,14 @@ ...@@ -243,13 +235,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 +252,22 @@ ...@@ -259,37 +252,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>
</tr>
<tr>
<td>pause</td>
<td>3000</td>
<td></td> <td></td>
</tr> </tr> -->
<tr> <tr>
<td>assertTextPresent</td> <td>waitForElementPresent</td>
<td>${title}</td> <td>link=${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 +275,15 @@ ...@@ -297,20 +275,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>
......
<?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