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);
}
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);
}
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();
}
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();
}
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);
}
Aggregations