DefinePermissionsRoleCAOrganizationTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Roles
type _128_name Organization Content Administrator
clickAtAndWait //input[@value='Search']
assertText //td[1]/a Organization Content Administrator
assertText //td[2]/a Organization
assertText //td[3]/a This is the Content Administrator Role.
clickAt //strong/span Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Define Permissions
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Define Permissions
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Define Permissions
assertText //strong Organization Content Administrator
clickAtAndWait //input[@value='Add Portal Permissions']
store eval(selenium.isChecked('_128_scopecom.liferay.portal.model.OrganizationAPPROVE_PROPOSALCheckbox')) approveProposalChecked
gotoIf ${approveProposalChecked} ApproveProposalChecked
clickAt _128_scopecom.liferay.portal.model.OrganizationAPPROVE_PROPOSALCheckbox
label ApproveProposalChecked
uncheck _128_scopecom.liferay.portal.model.OrganizationASSIGN_MEMBERSCheckbox
store eval(selenium.isChecked('_128_scopecom.liferay.portal.model.OrganizationASSIGN_REVIEWERCheckbox')) assignReviewerChecked
gotoIf ${assignReviewerChecked} AssignReviewerChecked
clickAt _128_scopecom.liferay.portal.model.OrganizationASSIGN_REVIEWERCheckbox
label AssignReviewerChecked
uncheck _128_scopecom.liferay.portal.model.OrganizationASSIGN_USER_ROLESCheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationDELETECheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationMANAGE_ANNOUNCEMENTSCheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationMANAGE_ARCHIVED_SETUPSCheckbox
store eval(selenium.isChecked('_128_scopecom.liferay.portal.model.OrganizationMANAGE_LAYOUTSCheckbox')) manageLayoutsChecked
gotoIf ${manageLayoutsChecked} ManageLayoutsChecked
clickAt _128_scopecom.liferay.portal.model.OrganizationMANAGE_LAYOUTSCheckbox
label ManageLayoutsChecked
uncheck _128_scopecom.liferay.portal.model.OrganizationMANAGE_STAGINGCheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationMANAGE_SUBORGANIZATIONSCheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationMANAGE_USERSCheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationPERMISSIONSCheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationPUBLISH_STAGINGCheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationUPDATECheckbox
uncheck _128_scopecom.liferay.portal.model.OrganizationVIEWCheckbox
clickAtAndWait //input[@value='Save']
assertText //div[@class='portlet-msg-success'] The role permissions were updated.