Create TextArea Attribute
setTimeout 45000
store javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php/designer/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='TitleBarAndDesignerPageMenuView']/div/ul/li[3]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText link=Fields Fields
clickAndWait link=Fields
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Accounts: Standard Fields
verifyTextPresent Create Field
assertTextNotPresent txta${randomSuffix}
select attributeTypeName label=Text Area
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait attributeTypeNameButton
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type TextAreaAttributeForm_attributeName txta${randomSuffix}
type TextAreaAttributeForm_attributeLabels_en txta${randomSuffix}
type TextAreaAttributeForm_defaultValue This is a sample text area
verifyValue TextAreaAttributeForm_isRequired off
click TextAreaAttributeForm_isRequired
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue TextAreaAttributeForm_isRequired on
verifyValue TextAreaAttributeForm_isAudited off
click TextAreaAttributeForm_isAudited
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue TextAreaAttributeForm_isAudited on
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent //div[@id='DesignerBreadCrumbView']/div/span Create Field:
assertText //div[@id='StandardAndCustomAttributesListView']/div[2]/div/h1 Create Field
assertText //div[@id='StandardAndCustomAttributesListView']/div[2]/div[2]/h1 Accounts: Custom Fields
verifyTextPresent txta${randomSuffix}
verifyTextPresent Accounts: Standard Fields
clickAndWait id=edit-link-txta${randomSuffix}Cstm
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='TextAreaAttributeEditView']/div/h1 exact:Edit Field: txta${randomSuffix}
type TextAreaAttributeForm_defaultValue This is a changed sample text area
verifyValue TextAreaAttributeForm_isRequired on
click TextAreaAttributeForm_isRequired
verifyValue TextAreaAttributeForm_isRequired off
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent //div[@id='DesignerBreadCrumbView']/div/span Edit Field:
assertText //div[@id='StandardAndCustomAttributesListView']/div[2]/div[2]/h1 Accounts: Custom Fields
verifyTextPresent txta${randomSuffix}
verifyTextPresent Accounts: Standard Fields