def test_moveFavoritesToFolders(self):
     homePage = HomePageSS(self.driver, self.wait)
     homePage.searchByKeyword("test")
     searchResults = SearchResultsPageSS(self.driver, self.wait)
     searchResults.clickFavoriteStarForResult(1)
     searchResults.clickFavoriteStarForResult(2)
     searchResults.clickFavoriteStarForResult(3)
     searchResults.clickFavoriteStarForResult(4)
     favorited = MyFoldersPageView(self.driver, self.wait)
     favorited.clickToSelectAllButton()
     favorited.clickAddToFolderButton()
     favorited.selectFolder(folderNameClass)
     self.assertTrue(favorited.getFavoritesFromFolders(), "No Favorites saved to folder")
 def test_removeFolders(self):
     folders = MyFoldersPageView(self.driver, self.wait)
     folders = self.removeFolder(folders, folderNameClass)
     folders = self.removeFolder(folders, folderNameColleagues)
     self.assertFalse(folders.folderExists(folderNameColleagues), "folder not deleted")
     self.assertFalse(folders.folderExists(folderNameClass), "folder not deleted")
 def test_createFolderSharedWithColleagues(self):
     folders = MyFoldersPageView(self.driver, self.wait)
     folders.createNewFolder()
     folders.typeAddNewFolderName(folderNameColleagues)
     folders.typeAddNewFolderDescription(text)
     folders.clickSharedWithColleagues()
     folders = folders.clickToCreateButton()
     self.assertTrue(folders.folderExists(folderNameColleagues), "folder not created")
 def test_click_add_to_folder_when_disabled(self):
     folders = MyFoldersPageView(self.driver, self.wait)
     folders.clickAddToFolderButton()
     self.assertFalse(folders.isDisplayedSelectFolderWidget(), "Select a folder widget displayed although no resource selected when clicking Add To Folder")