Search in sources :

Example 11 with IntraWikiSearchPageObject

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);
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test)

Example 12 with IntraWikiSearchPageObject

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();
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test)

Example 13 with IntraWikiSearchPageObject

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);
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) SearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject) IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue)

Example 14 with IntraWikiSearchPageObject

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);
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test)

Example 15 with IntraWikiSearchPageObject

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);
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue)

Aggregations

IntraWikiSearchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject)18 Test (org.testng.annotations.Test)18 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)7 NavigationBar (com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar)2 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)2 Execute (com.wikia.webdriver.common.core.annotations.Execute)1 SearchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject)1