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 @@
<td>${base_url}/logout</td>
<td></td>
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/login_form</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 metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td tal:omit-tag="" metal:fill-slot="username">PERSON_USER_REFERENCE</td>
<td tal:omit-tag="" metal:fill-slot="password">secret</td>
</tr>
<tr>
<td>openAndWait</td>
......@@ -1608,23 +1592,12 @@
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/login_form</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>${base_url}/logout</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@name="logged_in:method"]</td>
<td></td>
<tr metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td tal:omit-tag="" metal:fill-slot="username">${base_user}</td>
<td tal:omit-tag="" metal:fill-slot="password"></td>
</tr>
</tbody>
</table>
......
......@@ -1434,25 +1434,9 @@
<td>${base_url}/logout</td>
<td> </td>
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/login_form</td>
<td> </td>
</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 metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td tal:omit-tag="" metal:fill-slot="username">${base_user}</td>
<td tal:omit-tag="" metal:fill-slot="password">${base_password}</td>
</tr>
<tr>
<td>openAndWait</td>
......@@ -1489,25 +1473,9 @@
<td>${base_url}/logout</td>
<td> </td>
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/login_form</td>
<td> </td>
</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 metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td tal:omit-tag="" metal:fill-slot="username">PERSON_USER_REFERENCE</td>
<td tal:omit-tag="" metal:fill-slot="password">secret</td>
</tr>
<tr>
<td>openAndWait</td>
......@@ -1536,23 +1504,12 @@
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/login_form</td>
<td> </td>
</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>
<td>${base_url}/logout</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@name=&quot;logged_in:method&quot;]</td>
<td> </td>
<tr metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<td tal:omit-tag="" metal:fill-slot="username">${base_user}</td>
<td tal:omit-tag="" metal:fill-slot="password">${base_password}</td>
</tr>
</tbody>
</table> </test> </section><section class="screenshot">
......
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