Check Default Permissions Loaded Only On Create
setTimeout 45000
open index.php/users/default/configurationEdit?id=1
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=UserConfigurationForm_defaultPermissionSetting_1
select UserConfigurationForm_defaultPermissionGroupSetting label=West Channel Sales
clickAndWait link=Save
open index.php/accounts/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertValue Account_explicitReadWriteModelPermissions_type_1 on
assertSelectedLabel Account_explicitReadWriteModelPermissions_nonEveryoneGroup West Channel Sales
open index.php/accounts/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Account
type Account_name Test Account ${randomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[1]/td Test Account ${randomSuffix}
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
type AccountsSearchForm_anyMixedAttributes Test Account ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Test Account ${randomSuffix}
verifyTextPresent Test Account ${randomSuffix}
verifyValue AccountsSearchForm_anyMixedAttributes Test Account ${randomSuffix}
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent link=Edit
clickAndWait link=Edit
waitForTextPresent Test Account ${randomSuffix}
waitForElementPresent Account_explicitReadWriteModelPermissions_type_0
assertValue Account_explicitReadWriteModelPermissions_type_0 off
assertSelectedLabel Account_explicitReadWriteModelPermissions_nonEveryoneGroup West Channel Sales