Commit 663a55d4 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor to remove code duplicated

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44366 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 63404804
......@@ -53,51 +53,7 @@
<td>${ung_url}/WebSite_logout</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//td[@id="new-account-form"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="firstname"]</td>\n
<td>Gabriel</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="lastname"]</td>\n
<td>Monnerat</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="email"]</td>\n
<td>example@example.com</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="login_name"]</td>\n
<td>ung_user</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="password"]</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="confirm"]</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@value="Create Account"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForPageToLoad</td>\n
<td>30000</td>\n
<td></td>\n
</tr>\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/create-user" />\n
<tr>\n
<td>type</td>\n
<td>//input[@name="__ac_name"]</td>\n
......
......@@ -104,51 +104,7 @@
<td>//td[@id="back-login"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//td[@id="new-account-form"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="firstname"]</td>\n
<td>Gabriel</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="lastname"]</td>\n
<td>Monnerat</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="email"]</td>\n
<td>example@example.com</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="login_name"]</td>\n
<td>ung_user</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="password"]</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="confirm"]</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@value="Create Account"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForPageToLoad</td>\n
<td>30000</td>\n
<td></td>\n
</tr>\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/create-user" />\n
<tr>\n
<td>type</td>\n
<td>//input[@name="__ac_name"]</td>\n
......
......@@ -73,6 +73,53 @@
<td></td>\n
</tr>\n
</tal:block>\n
<tal:block metal:define-macro="create-user">\n
<tr>\n
<td>click</td>\n
<td>//td[@id="new-account-form"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="firstname"]</td>\n
<td>Gabriel</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="lastname"]</td>\n
<td>Monnerat</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="email"]</td>\n
<td>example@example.com</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="login_name"]</td>\n
<td>ung_user</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="password"]</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="confirm"]</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@value="Create Account"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForPageToLoad</td>\n
<td>30000</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
</tal:block>
]]></unicode> </value>
......
15
\ No newline at end of file
16
\ No newline at end of file
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