Commit 6ec5b994 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_travel_expense_ui_test: Use Zuite_CommonTemplate to interact with login form.

parent c8936d77
......@@ -43,30 +43,21 @@
<tr>
<td>waitForElementPresent</td>
<td>//input[@name="__ac_name"]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="__ac_name"]</td>
<td>test</td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="__ac_password"]</td>
<td>test</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Login']</td>
<td></td>
</tr>
<tal:block tal:define="
login_form_url python: None;
wait python: False;
submit_name python: '//input[@value=\'Login\']';
">
<tal:block metal:use-macro="python: context.Zuite_CommonTemplate.macros['login']">
<tal:block metal:fill-slot="username">test</tal:block>
<tal:block metal:fill-slot="password">test</tal:block>
</tal:block>
</tal:block>
<tr>
<td>waitForTextPresent</td>
<td>Logged In as</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