Commit 2956dafb 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 3e9ef826
...@@ -32,6 +32,20 @@ ...@@ -32,6 +32,20 @@
<td>name=Base_createCloneDocument:method</td> <td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id <td></td>field_my_id
</tr> </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> <tr>
<td>clickAndWait</td> <td>clickAndWait</td>
<td>name=Base_createCloneDocument:method</td> <td>name=Base_createCloneDocument:method</td>
...@@ -55,8 +69,8 @@ ...@@ -55,8 +69,8 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>runScript</td> <td>setTimeout</td>
<td>window.indexedDB.deleteDatabase('jio:setting')</td> <td>270000</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -64,6 +78,11 @@ ...@@ -64,6 +78,11 @@
<td>link=Local is Enough</td> <td>link=Local is Enough</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/web_site_module/manage_main</td> <td>${base_url}/web_site_module/manage_main</td>
......
...@@ -27,19 +27,24 @@ ...@@ -27,19 +27,24 @@
<td>${base_url}/web_site_module/ooffice_presentation?ignore_layout:int=1&editable_mode:int=1</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>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
</tr>
<tr> <tr>
<td>runScript</td> <td>runScript</td>
<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:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting') window.indexedDB.deleteDatabase('jio:setting')
</td> </td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>pause</td>
<td>name=Base_createCloneDocument:method</td> <td>1000</td>
<td></td>field_my_id <td></td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td>clickAndWait</td>
...@@ -63,11 +68,21 @@ ...@@ -63,11 +68,21 @@
<td>${base_url}/web_site_module/${test_url}/</td> <td>${base_url}/web_site_module/${test_url}/</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>link=Local is Enough</td> <td>link=Local is Enough</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/web_site_module/manage_main</td> <td>${base_url}/web_site_module/manage_main</td>
......
...@@ -27,19 +27,24 @@ ...@@ -27,19 +27,24 @@
<td>${base_url}/web_site_module/ooffice_spreadsheet?ignore_layout:int=1&editable_mode:int=1</td> <td>${base_url}/web_site_module/ooffice_spreadsheet?ignore_layout:int=1&editable_mode:int=1</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
</tr>
<tr> <tr>
<td>runScript</td> <td>runScript</td>
<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:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting') window.indexedDB.deleteDatabase('jio:setting')
</td> </td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>pause</td>
<td>name=Base_createCloneDocument:method</td> <td>1000</td>
<td></td>field_my_id <td></td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td>clickAndWait</td>
...@@ -63,11 +68,21 @@ ...@@ -63,11 +68,21 @@
<td>${base_url}/web_site_module/${test_url}/</td> <td>${base_url}/web_site_module/${test_url}/</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>link=Local is Enough</td> <td>link=Local is Enough</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/web_site_module/manage_main</td> <td>${base_url}/web_site_module/manage_main</td>
......
...@@ -27,19 +27,24 @@ ...@@ -27,19 +27,24 @@
<td>${base_url}/web_site_module/ooffice_spreadsheet?ignore_layout:int=1&editable_mode:int=1</td> <td>${base_url}/web_site_module/ooffice_spreadsheet?ignore_layout:int=1&editable_mode:int=1</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
</tr>
<tr> <tr>
<td>runScript</td> <td>runScript</td>
<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:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting') window.indexedDB.deleteDatabase('jio:setting')
</td> </td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>pause</td>
<td>name=Base_createCloneDocument:method</td> <td>1000</td>
<td></td>field_my_id <td></td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td>clickAndWait</td>
...@@ -63,11 +68,21 @@ ...@@ -63,11 +68,21 @@
<td>${base_url}/web_site_module/${test_url}/</td> <td>${base_url}/web_site_module/${test_url}/</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>link=Local is Enough</td> <td>link=Local is Enough</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/web_site_module/manage_main</td> <td>${base_url}/web_site_module/manage_main</td>
......
...@@ -32,6 +32,20 @@ ...@@ -32,6 +32,20 @@
<td>name=Base_createCloneDocument:method</td> <td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id <td></td>field_my_id
</tr> </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> <tr>
<td>clickAndWait</td> <td>clickAndWait</td>
<td>name=Base_createCloneDocument:method</td> <td>name=Base_createCloneDocument:method</td>
...@@ -55,8 +69,8 @@ ...@@ -55,8 +69,8 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>runScript</td> <td>pause</td>
<td>window.indexedDB.deleteDatabase('jio:setting')</td> <td>180000</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
......
...@@ -24,18 +24,34 @@ ...@@ -24,18 +24,34 @@
<!-- Initialize --> <!-- Initialize -->
<tr> <tr>
<td>open</td> <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> <td></td>
</tr> </tr>
<tr> <tr>
<td>runScript</td> <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> <td></td>
</tr> </tr>
<!-- sometimes it take a bit more than 90s for install -->
<tr> <tr>
<td>pause</td> <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> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -43,6 +59,11 @@ ...@@ -43,6 +59,11 @@
<td>link=Erp5</td> <td>link=Erp5</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>link=Erp5</td> <td>link=Erp5</td>
...@@ -158,6 +179,11 @@ ...@@ -158,6 +179,11 @@
<td>//button[@data-i18n='Save']</td> <td>//button[@data-i18n='Save']</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@data-gadget-scope="notification"]//button[text()='Data Updated']</td>
<td></td>
</tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>link=Properties</td> <td>link=Properties</td>
......
...@@ -27,19 +27,24 @@ ...@@ -27,19 +27,24 @@
<td>${base_url}/web_site_module/ooffice_text?ignore_layout:int=1&editable_mode:int=1</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>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
</tr>
<tr> <tr>
<td>runScript</td> <td>runScript</td>
<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:officejs-hash');
window.indexedDB.deleteDatabase('jio:setting') window.indexedDB.deleteDatabase('jio:setting')
</td> </td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>pause</td>
<td>name=Base_createCloneDocument:method</td> <td>1000</td>
<td></td>field_my_id <td></td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td>clickAndWait</td>
...@@ -63,11 +68,21 @@ ...@@ -63,11 +68,21 @@
<td>${base_url}/web_site_module/${test_url}/</td> <td>${base_url}/web_site_module/${test_url}/</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>270000</td>
<td></td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>link=Local is Enough</td> <td>link=Local is Enough</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/web_site_module/manage_main</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