Commit 73eca3b4 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner_ui_test: Fix test to cover latest changes

parent 1f0581bb
...@@ -68,11 +68,7 @@ ...@@ -68,11 +68,7 @@
<td>field_your_title</td> <td>field_your_title</td>
<td>Test Scan Document <span tal:replace="python: DateTime().ISO()"></span></td> <td>Test Scan Document <span tal:replace="python: DateTime().ISO()"></span></td>
</tr> </tr>
<!--tr>
<td>type</td>
<td>field_your_reference</td>
<td>TESTSCANDOCUMENT<span tal:replace="python: DateTime().ISO()"></span></td>
</tr-->
<tr> <tr>
<td>type</td> <td>type</td>
<td>field_your_language</td> <td>field_your_language</td>
...@@ -136,38 +132,31 @@ ...@@ -136,38 +132,31 @@
<td>//button[@class="confirm-btn ui-btn-icon-left ui-icon-check"]</td> <td>//button[@class="confirm-btn ui-btn-icon-left ui-icon-check"]</td>
<td></td> <td></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> <tr>
<tal:block tal:define="notification_configuration python: {'class': 'success', <td>waitForElementPresent</td>
'text': 'Captured'}"> <td>//button[@class="take-picture-btn ui-btn-icon-left ui-icon-circle"]</td>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> <td></td>
</tal:block> </tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@class="ui-btn-icon-left ui-icon-spinner"]</td>
<td></td>
</tr>
</div> </div>
<tr> <tr>
<td>storeValue</td> <td>waitForElementNotPresent</td>
<td>//input[@id="field_your_active_process_url"]</td> <td>//button[@class="ui-btn-icon-left ui-icon-spinner"]</td>
<td>active_process_url</td> <td></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog" />
<tal:block tal:define="notification_configuration python: {'class': 'success', <tal:block tal:define="notification_configuration python: {'class': 'success',
'text': 'The document is being created in background.'}"> 'text': 'The document is being created in background.'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr>
<td>open</td>
<td>${base_url}/erp5/Base_assertActiveProcessHasOneImage?active_process_url=${active_process_url}</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>OK</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" /> <tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr> <tr>
...@@ -229,17 +218,6 @@ ...@@ -229,17 +218,6 @@
<td></td> <td></td>
</tr> </tr>
<!--tr>
<td>open</td>
<td>${base_url}/erp5/Base_removeActiveProcessFromFileSystem?active_process_url=${active_process_url}</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done</td>
<td></td>
</tr-->
</tbody></table> </tbody></table>
</body> </body>
</html> </html>
\ 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