Commit 5de07bf3 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_configurator_standard_ui_test: Use Zuite_CommonTemplate to interact with login form.

Also, to reliably open login_form, log out.
parent 91082bba
...@@ -1561,25 +1561,9 @@ ...@@ -1561,25 +1561,9 @@
<td>${base_url}/logout</td> <td>${base_url}/logout</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td>openAndWait</td> <td tal:omit-tag="" metal:fill-slot="username">PERSON_USER_REFERENCE</td>
<td>${base_url}/login_form</td> <td tal:omit-tag="" metal:fill-slot="password">secret</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="__ac_name"]</td>
<td>PERSON_USER_REFERENCE</td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="__ac_password"]</td>
<td>secret</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@name="logged_in:method"]</td>
<td></td>
</tr> </tr>
<tr> <tr>
<td>openAndWait</td> <td>openAndWait</td>
...@@ -1608,23 +1592,12 @@ ...@@ -1608,23 +1592,12 @@
</tr> </tr>
<tr> <tr>
<td>openAndWait</td> <td>openAndWait</td>
<td>${base_url}/login_form</td> <td>${base_url}/logout</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="__ac_name"]</td>
<td>${base_user}</td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="__ac_password"]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td>clickAndWait</td> <td tal:omit-tag="" metal:fill-slot="username">${base_user}</td>
<td>//input[@name="logged_in:method"]</td> <td tal:omit-tag="" metal:fill-slot="password"></td>
<td></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -1434,26 +1434,10 @@ ...@@ -1434,26 +1434,10 @@
<td>${base_url}/logout</td> <td>${base_url}/logout</td>
<td> </td> <td> </td>
</tr> </tr>
<tr> <tr metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td>openAndWait</td> <td tal:omit-tag="" metal:fill-slot="username">${base_user}</td>
<td>${base_url}/login_form</td> <td tal:omit-tag="" metal:fill-slot="password">${base_password}</td>
<td> </td> </tr>
</tr>
<tr>
<td>type</td>
<td>//input[@name=&quot;__ac_name&quot;]</td>
<td>${base_user}</td>
</tr>
<tr>
<td>type</td>
<td>//input[@name=&quot;__ac_password&quot;]</td>
<td>${base_password}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@name=&quot;logged_in:method&quot;]</td>
<td> </td>
</tr>
<tr> <tr>
<td>openAndWait</td> <td>openAndWait</td>
<td>${base_url}/view</td> <td>${base_url}/view</td>
...@@ -1489,26 +1473,10 @@ ...@@ -1489,26 +1473,10 @@
<td>${base_url}/logout</td> <td>${base_url}/logout</td>
<td> </td> <td> </td>
</tr> </tr>
<tr> <tr metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td>openAndWait</td> <td tal:omit-tag="" metal:fill-slot="username">PERSON_USER_REFERENCE</td>
<td>${base_url}/login_form</td> <td tal:omit-tag="" metal:fill-slot="password">secret</td>
<td> </td> </tr>
</tr>
<tr>
<td>type</td>
<td>//input[@name=&quot;__ac_name&quot;]</td>
<td>PERSON_USER_REFERENCE</td>
</tr>
<tr>
<td>type</td>
<td>//input[@name=&quot;__ac_password&quot;]</td>
<td>secret</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@name=&quot;logged_in:method&quot;]</td>
<td> </td>
</tr>
<tr> <tr>
<td>openAndWait</td> <td>openAndWait</td>
<td>${base_url}/view</td> <td>${base_url}/view</td>
...@@ -1534,26 +1502,15 @@ ...@@ -1534,26 +1502,15 @@
<td>30000</td> <td>30000</td>
<td> </td> <td> </td>
</tr> </tr>
<tr> <tr>
<td>openAndWait</td> <td>openAndWait</td>
<td>${base_url}/login_form</td> <td>${base_url}/logout</td>
<td> </td> <td></td>
</tr> </tr>
<tr> <tr metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td>type</td> <td tal:omit-tag="" metal:fill-slot="username">${base_user}</td>
<td>//input[@name=&quot;__ac_name&quot;]</td> <td tal:omit-tag="" metal:fill-slot="password">${base_password}</td>
<td>${base_user}</td> </tr>
</tr>
<tr>
<td>type</td>
<td>//input[@name=&quot;__ac_password&quot;]</td>
<td>${base_password}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@name=&quot;logged_in:method&quot;]</td>
<td> </td>
</tr>
</tbody> </tbody>
</table> </test> </section><section class="screenshot"> </table> </test> </section><section class="screenshot">
<h1>Login</h1> <img alt="Login Form" title="Login Form" type="image/svg+xml" src="user-ERP5.Login.Form.Screenshot?format=png" /> <details open="open"> <h1>Login</h1> <img alt="Login Form" title="Login Form" type="image/svg+xml" src="user-ERP5.Login.Form.Screenshot?format=png" /> <details open="open">
......
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