Ejemplo n.º 1
0
 @Test(groups = {"IntraWikiSearch_012", "Search", "Search4"})
 public void noFileExtensionNeed() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_RESULT_WITH_EXTENSION);
   search.selectPhotosVideos();
   search.verifyFirstResultExtension(SearchContent.SEARCH_RESULT_WITH_EXTENSION);
 }
Ejemplo n.º 2
0
 @Test(groups = {"IntraWikiSearch_010", "Search", "Search2"})
 public void selectImagesOrVideos() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
   search.selectPhotosVideos();
   search.selectPhotosOnly();
   search.verifyPhotosOnly();
   search.selectVideosOnly();
   search.verifyVideosOnly();
 }
Ejemplo n.º 3
0
 @Test(groups = {"IntraWikiSearch_005", "Search", "Search2"})
 public void filtering() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
   search.selectPhotosVideos();
   search.verifyTitlesNotEmpty();
   search.selectPhotosOnly();
   search.verifyTitlesNotEmpty();
   search.verifyAllResultsImages(SearchContent.RESULTS_PER_PAGE_HIGH);
   search.selectVideosOnly();
   search.verifyTitlesNotEmpty();
   search.verifyAllResultsVideos(SearchContent.RESULTS_PER_PAGE_HIGH);
 }
Ejemplo n.º 4
0
 @Test(groups = {"IntraWikiSearch_007", "Search", "Search4"})
 public void sortingImages() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
   search.selectPhotosVideos();
   search.selectPhotosOnly();
   search.verifyTitlesNotEmpty();
   search.sortBy(sortOptions.RELEVANCY);
   List<String> titles1 = search.getTitles();
   search.sortBy(sortOptions.PUBLISH_DATE);
   List<String> titles2 = search.getTitles();
   search.compareTitleListsNotEquals(titles1, titles2);
 }