Create Currency 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
assertElementPresent link=Fields
clickAndWait link=Fields
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Accounts: Standard Fields
verifyTextPresent Create Field
assertTextNotPresent cur${randomSuffix}
select attributeTypeName label=Currency
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait attributeTypeNameButton
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type CurrencyValueAttributeForm_attributeName cur${randomSuffix}
type CurrencyValueAttributeForm_attributeLabels_en cur${randomSuffix}
verifyValue CurrencyValueAttributeForm_isRequired off
click CurrencyValueAttributeForm_isRequired
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue CurrencyValueAttributeForm_isRequired on
verifyValue CurrencyValueAttributeForm_isAudited off
click CurrencyValueAttributeForm_isAudited
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue CurrencyValueAttributeForm_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 cur${randomSuffix}
verifyTextPresent Accounts: Standard Fields
clickAndWait id=edit-link-cur${randomSuffix}Cstm
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='CurrencyValueAttributeEditView']/div/h1 exact:Edit Field: cur${randomSuffix}
verifyValue CurrencyValueAttributeForm_isRequired on
click CurrencyValueAttributeForm_isRequired
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue CurrencyValueAttributeForm_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 cur${randomSuffix}
verifyTextPresent Accounts: Standard Fields