Commit c8936d77 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_web_ui_test: Use Zuite_CommonTemplate to interact with login form.

parent ca87fa05
...@@ -35,29 +35,16 @@ ...@@ -35,29 +35,16 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>open</td> <td>openAndWait</td>
<td>${base_url}/web_site_module/test_web_site/login_form</td> <td>${base_url}/logout</td>
<td></td>
<td>Login into the site</td>
</tr>
<tr>
<td>type</td>
<td>__ac_name</td>
<td>test_webmaster</td>
<td>Enter login</td>
</tr>
<tr>
<td>type</td>
<td>__ac_password</td>
<td>test_webmaster</td>
<td>Enter password</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>name=logged_in:method</td>
<td></td> <td></td>
<td>Click login</td>
</tr> </tr>
<tal:block tal:define="login_form_url python:'${base_url}/web_site_module/test_web_site'">
<tal:block metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<tal:block metal:fill-slot="username">test_webmaster</tal:block>
<tal:block metal:fill-slot="password">test_webmaster</tal:block>
</tal:block>
</tal:block>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//span[@class='headline']</td> <td>//span[@class='headline']</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