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,25 +1434,9 @@ ...@@ -1434,25 +1434,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">${base_user}</td>
<td>${base_url}/login_form</td> <td tal:omit-tag="" metal:fill-slot="password">${base_password}</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> </tr>
<tr> <tr>
<td>openAndWait</td> <td>openAndWait</td>
...@@ -1489,25 +1473,9 @@ ...@@ -1489,25 +1473,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=&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> <tr>
<td>openAndWait</td> <td>openAndWait</td>
...@@ -1536,23 +1504,12 @@ ...@@ -1536,23 +1504,12 @@
</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>
<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>
<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=&quot;logged_in:method&quot;]</td> <td tal:omit-tag="" metal:fill-slot="password">${base_password}</td>
<td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </test> </section><section class="screenshot"> </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