CreateUser
setSpeed 3000
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
click link=My Profile
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Users
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/users/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select UserPasswordForm_title_value label=Mr.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type UserPasswordForm_firstName Janny${randomSuffix}
type UserPasswordForm_lastName Jingo${randomSuffix}
type UserPasswordForm_username janny${randomSuffix}
type UserPasswordForm_newPassword abc123
type UserPasswordForm_newPassword_repeat abc123
type UserPasswordForm_jobTitle Jingo Factory
type UserPasswordForm_officePhone 123456789
type UserPasswordForm_mobilePhone 123455555
type UserPasswordForm_department Mail
type UserPasswordForm_primaryEmail_emailAddress janny${randomSuffix}.jingo.com
type UserPasswordForm_primaryAddress_street1 123 Jingo Street
type UserPasswordForm_primaryAddress_state IL
type UserPasswordForm_primaryAddress_city Chicago
type UserPasswordForm_primaryAddress_postalCode 60614
type UserPasswordForm_primaryAddress_country USA
click save
assertTextPresent Email Address is not a valid email address.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type UserPasswordForm_primaryEmail_emailAddress janny${randomSuffix}@jingo.com
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=img.gravatar
assertTextPresent Change Profile Picture: Janny${randomSuffix} Jingo${randomSuffix}
click css=span.ui-icon.ui-icon-closethick
click //div[@id='zurmoView']/div[1]/table/tbody/tr[5]/td/a
assertTextPresent Compose Email
click css=span.ui-icon.ui-icon-closethick
click link=123 Jingo Street Chicago IL, 60614 USA
click css=span.ui-icon.ui-icon-closethick
assertVisible //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-office-phone']
assertVisible //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-mobile-phone']
assertVisible //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-email']
assertVisible //div[@id='businessCardView']/div[@class='gravatar-container']/a/img[@class='gravatar']
assertNotVisible //div[@id='zurmoView']/div[1]/table/tbody/tr[3]/td
assertNotVisible //div[@id='zurmoView']/div[1]/table/tbody/tr[4]/td
assertNotVisible //div[@id='zurmoView']/div[1]/table/tbody/tr[1]/td
click id=sliding-panel-toggle
click link=More Details
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText link=Edit Edit
verifyTextPresent janny${randomSuffix}
verifyTextPresent Mail
assertText link=janny${randomSuffix}@jingo.com janny${randomSuffix}@jingo.com
assertText //div[@id='zurmoView']/div[1]/table/tbody/tr[3]/td 123456789
assertText //div[@id='zurmoView']/div[1]/table/tbody/tr[4]/td 123455555
assertText //div[@id='zurmoView']/div[1]/table/tbody/tr[1]/td Jingo Factory
assertVisible //div[@id='zurmoView']/div[1]/table/tbody/tr[3]/td
assertVisible //div[@id='zurmoView']/div[1]/table/tbody/tr[4]/td
assertVisible //div[@id='zurmoView']/div[1]/table/tbody/tr[1]/td
assertNotVisible //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-office-phone']
assertNotVisible //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-mobile-phone']
assertNotVisible //div[@id='businessCardView']/div[@class='contact-details']/span[@class='icon-email']
assertNotVisible //div[@id='businessCardView']/div[@class='gravatar-container']/a/img[@class='gravatar']
open index.php/zurmo/group
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Super Administrators
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=User Membership
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
addSelection id=edit-form_userNonMembershipData label=Janny${randomSuffix} Jingo${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=yw1moveRight
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait name=save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Sign out
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Username
type LoginForm_username janny${randomSuffix}
type LoginForm_password abc123
click Login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent janny${randomSuffix}
click link=Save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Sign out
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000