FgtnPassValidationAfterLogin revision aad719b323501306ded0d31401a9208df0e6b1f0
<?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>FgtnPassValidationAfterLogin</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">FgtnPassValidationAfterLogin</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(["org/forgerock/commons/ui/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(["org/forgerock/commons/ui/user/delegates/UserDelegate"], function(userDelegate) { userDelegate.createEntity({ userName : "test@test.test", givenName : "test", familyName :"test", email : "test@test.test", password : "tesT#1#Test", address1 : "", address2 : "", city : "", postalCode : "", phoneNumber : "123", country : "", stateProvince : "", securityQuestion : "1", securityAnswer : "qwe" }); });</td>
<td></td>
</tr>
<tr>
<td>waitForCondition</td>
<td>1000</td>
</tr>
<tr>
<td>deleteAllVisibleCookies</td>
<td></td>
<td></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>test@test.test</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Forgot your password</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=frgtPasswrdSelfReg</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=frgtPasswrdSelfReg</td>
<td></td>
</tr>
<tr>
<td>waitForCondition</td>
<td>1000</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=forgottenEmail</td>
<td></td>
</tr>
<tr>
<td>waitForValue</td>
<td>name=forgottenEmail</td>
<td>test@test.test</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=forgottenEmail</td>
<td>change</td>
</tr>
<tr>
<td>pause</td>
<td>300</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=fgtnSecurityAnswer</td>
<td>qwe</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=fgtnSecurityAnswer</td>
<td>keyup</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=password</td>
<td>Dapu123_</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=password</td>
<td>keyup</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=passwordConfirm</td>
<td>Dapu123_</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=passwordConfirm</td>
<td>keyup</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>waitForValue</td>
<td>id=dialogOk</td>
<td>Update</td>
</tr>
<tr>
<td>click</td>
<td>name=dialogOk</td>
<td></td>
</tr>
<tr>
<td>waitForCondition</td>
<td>10000</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=logout_link</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>id=logout_link</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>test@test.test</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>test@test.test</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=logout_link</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=login</td>
<td>test@test.test</td>
</tr>
<tr>
<td>type</td>
<td>name=password</td>
<td>Dapu123_</td>
</tr>
<tr>
<td>click</td>
<td>name=loginButton</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=logout_link</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>id=logout_link</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>test@test.test</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>test@test.test</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=logout_link</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=loginButton</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>name=loginButton</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>name=login</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>name=password</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=login</td>
<td>test@test.test</td>
</tr>
<tr>
<td>type</td>
<td>name=password</td>
<td>aaa</td>
</tr>
<tr>
<td>click</td>
<td>name=loginButton</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=forgotPasswordLink</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=forgotPasswordLink</td>
<td></td>
</tr>
<tr>
<td>waitForCondition</td>
<td>1000</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=forgottenEmail</td>
<td></td>
</tr>
<tr>
<td>waitForValue</td>
<td>name=forgottenEmail</td>
<td>test@test.test</td>
</tr>
<tr>
<td>pause</td>
<td>300</td>
<td></td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=forgottenEmail</td>
<td>change</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=fgtnSecurityAnswer</td>
<td>qwe</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=fgtnSecurityAnswer</td>
<td>keyup</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=password</td>
<td>Dapu123_</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=password</td>
<td>keyup</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=passwordConfirm</td>
<td>Dapu123_</td>
</tr>
<tr>
<td>fireEvent</td>
<td>name=passwordConfirm</td>
<td>keyup</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td></td>
</tr>
<tr>
<td>waitForValue</td>
<td>id=dialogOk</td>
<td>Update</td>
</tr>
<tr>
<td>click</td>
<td>name=dialogOk</td>
<td></td>
</tr>
<tr>
<td>waitForCondition</td>
<td>10000</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=logout_link</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>id=logout_link</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>