コード例 #1
0
 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")