コード例 #1
0
 @Test(groups = {"dropDownSuggestions", "IntraWikiSearch", "Search"})
 public void dropDownSuggestions() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.triggerSuggestions(SearchContent.SEARCH_SUGGESTION_PHRASE);
   search.verifySuggestions(SearchContent.SEARCH_ARTICLE);
 }
コード例 #2
0
 @Test(groups = {"IntraWikiSearch_004", "Search", "Search1"})
 public void noResults() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PHRASE_NO_RESULTS_2);
   search.verifyNoResults();
 }
コード例 #3
0
 @Test(groups = {"IntraWikiSearch_014", "Search", "Search2"})
 public void topModule() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
   search.verifyTopModule();
 }
コード例 #4
0
 @Test(
     enabled = false,
     groups = {"searchSuggestionsVisibility", "IntraWikiSearch", "Search"})
 public void searchSuggestionsVisibility() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(searchSuggestionsWiki);
   search.verifyNewSuggestionsTextAndImages(SearchContent.SEARCH_PHRASE_NEW_SUGGESTIONS);
 }
コード例 #5
0
 @Test(groups = {"anonSearch", "Search", "Search1"})
 public void anonSearch() {
   WikiBasePageObject base = new WikiBasePageObject(driver);
   base.openWikiPage(testedWiki);
   NavigationBar navigation = new NavigationBar(driver);
   IntraWikiSearchPageObject search = navigation.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
   search.verifyFirstArticleNameTheSame(SearchContent.SEARCH_PHRASE_RESULTS);
 }
コード例 #6
0
 @Test(groups = {"IntraWikiSearch_015", "Search", "Search3"})
 public void communityPushToTopWikiResult() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(communityWiki);
   search.searchForInGlobalNavIfPresent(SearchContent.SEARCH_WIKI);
   search.verifyPushToTopWikiTitle(SearchContent.SEARCH_WIKI);
   search.verifyPushToTopWikiThumbnail();
 }
コード例 #7
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);
 }
コード例 #8
0
 @Test(groups = {"IntraWikiSearch_011", "Search", "Search3"})
 public void defaultNamespaces() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
   search.clickAdvancedButton();
   search.verifyDefaultNamespaces();
 }
コード例 #9
0
 @Test(groups = {"IntraWikiSearch_009", "Search", "Search1"})
 public void languageTranslation() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
   search.addQqxUselang();
   search.verifyLanguageTranslation();
 }
コード例 #10
0
 @Test(
     dataProviderClass = IntraWikiSearchProvider.class,
     dataProvider = "getNamespaces",
     groups = {"IntraWikiSearch_013", "Search", "Search1"})
 public void namespaces(String searchPhrase, String namespace) {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(searchPhrase);
   search.selectAllAdvancedOptions();
   SearchPageObject searchPage = new SearchPageObject(driver);
   searchPage.clickSearchButton();
   searchPage.setSearchTab(SearchPageObject.SearchTab.EVERYTHING);
   search.verifyNamespace(namespace);
 }
コード例 #11
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();
 }
コード例 #12
0
 @Test(groups = {"IntraWikiSearch_003", "Search", "Search4"})
 public void resultsCount() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
   search.verifyResultsCount(SearchContent.RESULTS_PER_PAGE_HIGH);
   search.clickNextPaginator();
   search.verifyResultsCount(SearchContent.RESULTS_PER_PAGE_HIGH);
 }
コード例 #13
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);
 }
コード例 #14
0
 @Test(groups = {"IntraWikiSearch_002", "Search", "Search3"})
 @RelatedIssue(
     issueID = "MAIN-5044",
     comment =
         "make sure there is a pagination, "
             + "built of 6 or 11 elements depending or what "
             + "pagination link you enter")
 public void pagination() {
   IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
   search.openWikiPage(testedWiki);
   search.searchFor(SearchContent.SEARCH_PAGINATION_RESULTS);
   String firstResult = search.getTitleInnerText();
   search.verifyPagination();
   search.clickNextPaginator();
   search.verifyFirstArticleNameNotTheSame(firstResult);
   search.verifyPagination();
   search.clickPrevPaginator();
   search.verifyFirstArticleNameTheSame(firstResult);
   search.verifyPagination();
   search.verifyLastResultPage();
 }
コード例 #15
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);
 }