SequrityQuestionChange revision 2d7019e19039fd083850f76e54b6b26a7b06a8f2
<?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>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</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({ userName : "test@test.test", firstname : "test", lastname :"test", email : "test@test.test", password : "tesT#1#Test", address1 : "", address2 : "", city : "", postalcode : "", phonenumber : "", country : "", state_province : "", securityquestion : "", securityanswer : "" }); });</td>
<td></td>
</tr>
<tr>
<td>waitForCondition</td>
<td>1000</td>
</tr>
<tr>
<td>type</td>
<td>name=loginText</td>
<td>test@test.test</td>
</tr>
<tr>
<td>type</td>
<td>name=loginPassword</td>
<td>tesT#1#Test</td>
</tr>
<tr>
<td>click</td>
<td>name=loginButton</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=securityDialogLink</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=securityDialogLink</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=passwordOld</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=passwordOld</td>
<td>tesT#1#Test</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=passwordOld</td>
<td>blur</td>
</tr>
<tr>
<td>click</td>
<td>id=dialogOk</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=fgtnSecurityQuestion</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>name=fgtnSecurityQuestion</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>name=fgtnSecurityQuestion</td>
<td>label=What was your first pet's name?</td>
</tr>
<tr>
<td>type</td>
<td>name=fgtnSecurityAnswer</td>
<td>qwe</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=fgtnSecurityAnswer</td>
<td>change</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@id='securityMore']/div[3]/span</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>//div[@id='securityMore']/div[3]/span</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td></td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=fgtnSecurityQuestion</td>
<td>change</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=fgtnSecurityAnswer</td>
<td>change</td>
</tr>
<tr>
<td>click</td>
<td>id=dialogOk</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@id='messages']/div[2]</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Security question has been changed</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>