Search in sources :

Example 6 with IntraWikiSearchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.

the class BasicActions method resultsCount.

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

Example 7 with IntraWikiSearchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.

the class BasicActions method sortingImages.

@Test(groups = { "IntraWikiSearch_007", "Search", "Search4" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
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);
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue)

Example 8 with IntraWikiSearchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.

the class BasicActions method topModule.

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

Example 9 with IntraWikiSearchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.

the class BasicActions method defaultNamespaces.

@Test(groups = { "IntraWikiSearch_011", "Search", "Search3" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
public void defaultNamespaces() {
    IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
    search.openWikiPage(testedWiki);
    search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
    search.clickAdvancedButton();
    search.verifyDefaultNamespaces();
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue)

Example 10 with IntraWikiSearchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.

the class Suggestions method dropDownSuggestions.

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

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