Ejemplo n.º 1
0
 def test_attachingEntityWithNoLogoWorks(self):
     entitiesPage = EntitiesPageCMS(self.driver, self.wait)
     entity = entitiesPage.clickAddEntity()
     entity.typeName(self.entity)
     entity.clickSaveButton()
     contProjs = ContentProjectsPageCMS(self.driver, self.wait)
     project = contProjs.clickContentProjectByIndex(1)
     project.clickShowHideBrandAndRequiredAttributionsLink()
     project.selectRoleByIndex(1)
     project.selectEntityByValue(self.entity)
     project = project.clickSaveAndContinueEditingButton()
     self.assertTrue(project.getTitle()!=None, "Project with no-logo-entity not added correctly")
 def test_search_content_projects(self):
     contProjPg = ContentProjectsPageCMS(self.driver, self.wait)
     contProjPg.search_in_searchbar("a")
     contProjPg = ContentProjectsPageCMS(self.driver, self.wait, "noFreshLoad")
     self.assertTrue(contProjPg.countRowsInResultsTable() > 0, "Search results not displayed")
 def test_searchOneStatusInContentProjectReturnsOnlyThatStatus(self):
     contProjListPage = ContentProjectsPageCMS(self.driver, self.wait)
     contProj = contProjListPage.clickContentProjectByName("PBST Forgotten Americans")
     if (contProj.itemExistsByStatus("uploaded") != None):      
         contProj.selectStatusFilter("In Progress")
         self.assertFalse(contProj.itemExistsByStatus("uploaded"), "Although In-Progress filter is selected, Uploaded items still appear in list")