EmailValidation revision 41b8a41890ba8f4574304c7ef42effe818413348
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<title>EmailValidation</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">EmailValidation</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td></td>
</tr>
<tr>
<td>deleteAllVisibleCookies</td>
<td></td>
<td></td>
</tr>
<tr>
<td>runScript</td>
<td>require(["app/comp/user/delegates/UserDelegate"], function(userDelegate) { userDelegate.removeAllUsers(); });</td>
<td></td>
</tr>
<tr>
<td>waitForCondition</td>
<td>1000</td>
</tr>
<tr>
<td>runScript</td>
<td>require(["app/comp/user/delegates/UserDelegate"], function(userDelegate) { userDelegate.createEntity({ password : "tesT#1#Test", userName : "test@test.test", firstname : "test", lastname :"test", email : "test@test.test", address1 : "", address2 : "", city : "", postalcode : "", phonenumber : "123", country : "", state_province : "", securityquestion : "1", securityanswer : "qwe" }); });</td>
<td></td>
</tr>
<tr>
<td>waitForCondition</td>
<td>1000</td>
</tr>
<tr>
<td>click</td>
<td>name=registerButton</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=email</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=email</td>
<td>qwe</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=email</td>
<td>change</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Not a valid email address.</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Not a valid email address.</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=email</td>
<td>test@test.test</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=email</td>
<td>change</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Email address already exists.</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Email address already exists.</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=email</td>
<td>test@test.com</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=email</td>
<td>change</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>