Commit 2328d696 authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs_ui_test] Update OfficeTextErp5Sync test

parent 777af11a
...@@ -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,27 @@ ...@@ -24,32 +24,27 @@
<!-- 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> <tr>
<td>waitForElementPresent</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>click</td> <td>click</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>waitForElementPresent</td>
<td>//form[@class='erp5-configuration-form']</td> <td>name=erp5_url</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>6000</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -59,42 +54,22 @@ ...@@ -59,42 +54,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>
...@@ -133,123 +108,130 @@ ...@@ -133,123 +108,130 @@
<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>
<tr> <tr>
<td>click</td> <td>verifyValue</td>
<td>//a[@data-i18n='Synchronize']</td> <td>reference</td>
<td>${reference}</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>${description}</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>pause</td> <td>click</td>
<td>10000</td> <td>//a[@data-i18n='Synchronize']</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>
...@@ -258,33 +240,33 @@ ...@@ -258,33 +240,33 @@
<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>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> <td></td>
</tr> </tr>
<tr> <tr>
<td>pause</td> <td>assertTextPresent</td>
<td>5000</td> <td>${title}</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -297,11 +279,6 @@ ...@@ -297,11 +279,6 @@
<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>
......
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