Commit 8ad4452f authored by Gabriel Monnerat's avatar Gabriel Monnerat

add more asserts to validate if each user will edit your preference correctly

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45675 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c6e9c7b
......@@ -154,6 +154,196 @@
<td>//input[@value=\'text_area\']@checked</td>\n
<td>checked</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//span[@class=\'ui-icon ui-icon-closethick\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<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>Another</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="lastname"]</td>\n
<td>User</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="email"]</td>\n
<td>example2@example.com</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="login_name"]</td>\n
<td>ung_user2</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
<tr>\n
<td>type</td>\n
<td>__ac_name</td>\n
<td>ung_user2</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_password</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@type="submit"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="settings"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent("//input[@name=\'field_my_preferred_text_editor\']")</td>\n
<td>3000</td>\n
</tr>\n
<tr>\n
<td>check</td>\n
<td>//input[@value=\'fck_editor\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>check</td>\n
<td>//input[@value=\'text/html\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//html/body/div[3]/div[11]/div/button[1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="settings"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent("//input[@name=\'field_my_preferred_text_editor\']")</td>\n
<td>3000</td>\n
</tr>\n
<tr>\n
<td>check</td>\n
<td>//input[@value=\'fck_editor\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>check</td>\n
<td>//input[@value=\'text/html\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="settings"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent("//input[@name=\'field_my_preferred_text_editor\']")</td>\n
<td>3000</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//html/body/div[3]/div[11]/div/button[1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="settings"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent("//input[@name=\'field_my_preferred_text_editor\']")</td>\n
<td>3000</td>\n
</tr>\n
<tr>\n
<td>verifyAttribute</td>\n
<td>//input[@value=\'fck_editor\']@checked</td>\n
<td>checked</td>\n
</tr>\n
<tr>\n
<td>verifyAttribute</td>\n
<td>//input[@value=\'text/html\']@checked</td>\n
<td>checked</td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}/WebSite_logout</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_name</td>\n
<td>test_user</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_password</td>\n
<td>test_user</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@type="submit"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//a[@id="settings"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent("//input[@name=\'field_my_preferred_text_editor\']")</td>\n
<td>3000</td>\n
</tr>\n
<tr>\n
<td>verifyAttribute</td>\n
<td>//input[@value=\'text_area\']@checked</td>\n
<td>checked</td>\n
</tr>\n
<tr>\n
<td>verifyAttribute</td>\n
<td>//input[@value=\'text/plain\']@checked</td>\n
<td>checked</td>\n
</tr>\n
</tbody>\n
</table>\n
</body>\n
......
59
\ No newline at end of file
60
\ 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