def test_defineAdminUserForOrganization(self):
     contributorsPage = ContributorsPageCMS(self.driver, self.wait)
     dashboard = contributorsPage.openDashboardForOrganization(org)
     orgUsersPage = dashboard.selectCreateUser()
     fillUserForm(orgUsersPage, orgAdminEmail)
     orgUsersPage.clickStationAdminRadio()
     orgUsersPage.clickContentAdminRadio()
     orgUsersPage = orgUsersPage.clickSaveButtonAddUserForm()
     self.assertTrue(orgUsersPage.userExists(orgAdminEmail), "Admin not added")
 def test_addOrganizationContentProject(self):
     contributorsPage = ContributorsPageCMS(self.driver, self.wait)
     contributorsPage.openDashboardForOrganization(org)
     contentProjPage = HomePageCMS(self.driver, self.wait).clickContentProjectLink()
     addContProj = contentProjPage.clickAddContentProject()
     addContProj.typeTitle("%s content project" %org)
     addContProj.selectOrganizationByValue(org)
     addContProj.clickSaveAndContinueEditingButton()
     contributorsPage = ContributorsPageCMS(self.driver, self.wait)
     dashboard = contributorsPage.openDashboardForOrganization(org)
     self.assertTrue(dashboard.elementExistsByLinkText("%s content project" %org), "Content project not asigned to Organization")
 def test_defaultContentProjectCreatedForNewOrganization(self):
     contributorsPage = ContributorsPageCMS(self.driver, self.wait)
     dashboard = contributorsPage.openDashboardForOrganization(org)
     self.assertTrue(dashboard.elementExistsByLinkText("%s Default" %org), "Default content project not created for new organization")