diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentationSave.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentationSave.zpt index dfe0d0f0c1929f0dd13299e191cf408240bd5e5c..70c208bf31565401bca3413e47de7ceb5c0117b2 100644 --- a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentationSave.zpt +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficePresentationSave.zpt @@ -21,14 +21,77 @@ <td>Reset Successfully.</td> <td></td> </tr> +<!-- Initialize --> <tr> <td>open</td> - <td>${base_url}/web_site_module/ooffice_presentation/</td> + <td>${base_url}/web_site_module/ooffice_presentation?ignore_layout:int=1&editable_mode:int=1</td> <td></td> </tr> <tr> <td>runScript</td> - <td>window.indexedDB.deleteDatabase('jio:setting')</td> + <td> + window.indexedDB.deleteDatabase('jio:officejs_code_source'); + 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 +</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>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> @@ -91,6 +154,7 @@ <td>link=Content</td> <td></td> </tr> +<!-- Stop Generic --> <tr> <td>waitForElementPresent</td> <td>identifier=id_main</td> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheetSave.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheetSave.zpt index 4f4924523ee8f14843577edebc3b2086430aaa68..fa54ccfeba470bb90293ec59b35eccb43e46d325 100644 --- a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheetSave.zpt +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeSpreadsheetSave.zpt @@ -21,14 +21,77 @@ <td>Reset Successfully.</td> <td></td> </tr> +<!-- Initialize --> <tr> <td>open</td> - <td>${base_url}/web_site_module/ooffice_spreadsheet/</td> + <td>${base_url}/web_site_module/ooffice_text?ignore_layout:int=1&editable_mode:int=1</td> <td></td> </tr> <tr> <td>runScript</td> - <td>window.indexedDB.deleteDatabase('jio:setting')</td> + <td> + window.indexedDB.deleteDatabase('jio:officejs_code_source'); + 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 +</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>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> @@ -91,6 +154,7 @@ <td>link=Content</td> <td></td> </tr> +<!-- Stop Generic --> <tr> <td>waitForElementPresent</td> <td>identifier=id_main</td> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextSave.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextSave.zpt index 6d8d78d8c1361e9b367e02227c2caf680ae8be84..fa54ccfeba470bb90293ec59b35eccb43e46d325 100644 --- a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextSave.zpt +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_zuite/testOnlyfficeTextSave.zpt @@ -21,14 +21,77 @@ <td>Reset Successfully.</td> <td></td> </tr> +<!-- 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&editable_mode:int=1</td> <td></td> </tr> <tr> <td>runScript</td> - <td>window.indexedDB.deleteDatabase('jio:setting')</td> + <td> + window.indexedDB.deleteDatabase('jio:officejs_code_source'); + 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 +</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>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> @@ -91,6 +154,7 @@ <td>link=Content</td> <td></td> </tr> +<!-- Stop Generic --> <tr> <td>waitForElementPresent</td> <td>identifier=id_main</td>