use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.
the class ExactMatch method IntraWikiSearch_001_exactMatch.
@Test(dataProviderClass = IntraWikiSearchProvider.class, dataProvider = "getArticleName", groups = { "IntraWikiSearch_001", "IntraWikiSearchExactMatch", "Search" })
public void IntraWikiSearch_001_exactMatch(String query) {
IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
search.openWikiPage(wikiURL);
search.searchFor(query);
search.verifyFirstResult(query);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.
the class BasicActions method communityPushToTopWikiResult.
@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();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.
the class BasicActions method namespaces.
@Test(dataProviderClass = IntraWikiSearchProvider.class, dataProvider = "getNamespaces", groups = { "IntraWikiSearch_013", "Search", "Search1" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.
the class Suggestions method searchSuggestionsVisibility.
@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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.
the class BasicActions method filtering.
@Test(groups = { "IntraWikiSearch_005", "Search", "Search2" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
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);
}
Aggregations