Commit 4c62d01b authored by Boris Kocherov's avatar Boris Kocherov

erp5_officejs_ui_test: OnlyOffice changes:

increase timeout for downloading for offline mode
fix cleanup
use Data changed notification for sync does not abort save
parent e89e0005
......@@ -32,6 +32,20 @@
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
</tr>
<tr>
<td>runScript</td>
<td>
window.indexedDB.deleteDatabase('jio:ojs_source_code');
window.indexedDB.deleteDatabase('jio:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>name=Base_createCloneDocument:method</td>
......@@ -55,8 +69,8 @@
<td></td>
</tr>
<tr>
<td>runScript</td>
<td>window.indexedDB.deleteDatabase('jio:setting')</td>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr>
......@@ -64,6 +78,11 @@
<td>link=Local is Enough</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/manage_main</td>
......
......@@ -27,19 +27,24 @@
<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>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
</tr>
<tr>
<td>runScript</td>
<td>
window.indexedDB.deleteDatabase('jio:officejs_code_source');
window.indexedDB.deleteDatabase('jio:ojs_source_code');
window.indexedDB.deleteDatabase('jio:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -63,11 +68,21 @@
<td>${base_url}/web_site_module/${test_url}/</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>link=Local is Enough</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/manage_main</td>
......
......@@ -27,19 +27,24 @@
<td>${base_url}/web_site_module/ooffice_spreadsheet?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>runScript</td>
<td>
window.indexedDB.deleteDatabase('jio:officejs_code_source');
window.indexedDB.deleteDatabase('jio:ojs_source_code');
window.indexedDB.deleteDatabase('jio:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -63,11 +68,21 @@
<td>${base_url}/web_site_module/${test_url}/</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>link=Local is Enough</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/manage_main</td>
......
......@@ -27,19 +27,24 @@
<td>${base_url}/web_site_module/ooffice_spreadsheet?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>runScript</td>
<td>
window.indexedDB.deleteDatabase('jio:officejs_code_source');
window.indexedDB.deleteDatabase('jio:ojs_source_code');
window.indexedDB.deleteDatabase('jio:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -63,11 +68,21 @@
<td>${base_url}/web_site_module/${test_url}/</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>link=Local is Enough</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/manage_main</td>
......
......@@ -32,6 +32,20 @@
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
</tr>
<tr>
<td>runScript</td>
<td>
window.indexedDB.deleteDatabase('jio:ojs_source_code');
window.indexedDB.deleteDatabase('jio:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>name=Base_createCloneDocument:method</td>
......@@ -55,8 +69,8 @@
<td></td>
</tr>
<tr>
<td>runScript</td>
<td>window.indexedDB.deleteDatabase('jio:setting')</td>
<td>pause</td>
<td>180000</td>
<td></td>
</tr>
<tr>
......
......@@ -24,18 +24,34 @@
<!-- Initialize -->
<tr>
<td>open</td>
<td>${base_url}/web_site_module/ooffice_text/</td>
<td>${base_url}/web_site_module/ooffice_text?ignore_layout:int=1</td>
<td></td>
</tr>
<tr>
<td>runScript</td>
<td>window.indexedDB.deleteDatabase('jio:setting')</td>
<td>
window.indexedDB.deleteDatabase('jio:ojs_source_code');
window.indexedDB.deleteDatabase('jio:officejs-erp5');
window.indexedDB.deleteDatabase('jio:officejs-erp5-hash');
window.indexedDB.deleteDatabase('jio:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<!-- sometimes it take a bit more than 90s for install -->
<tr>
<td>pause</td>
<td>10000</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/ooffice_text/</td>
<td></td>
</tr>
<!-- sometimes it take a bit more than 90s for install -->
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr>
......@@ -43,6 +59,11 @@
<td>link=Erp5</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Erp5</td>
......@@ -163,6 +184,11 @@
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@data-gadget-scope="notification"]//button[text()='Data Updated']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Properties</td>
......
......@@ -27,19 +27,24 @@
<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>runScript</td>
<td>
window.indexedDB.deleteDatabase('jio:officejs_code_source');
window.indexedDB.deleteDatabase('jio:ojs_source_code');
window.indexedDB.deleteDatabase('jio:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting')
</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -63,11 +68,21 @@
<td>${base_url}/web_site_module/${test_url}/</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>link=Local is Enough</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/manage_main</td>
......
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