public void AllResultsHaveSearchingInTitle() { MainPageService.GotoBasePage(); MainPageService.Search("Rammstein"); var x = SearchResultsPage.GetSearchTitles(); Assert.That(x.All(el => el.Contains("rammstein")), "The element without search word is exist"); }
public void TwoPageSearchResultsAreDifferent() { MainPageService.GotoBasePage(); MainPageService.Search("reddit"); var searchResultFromFirstPage = SearchResultsPage.GetSearchTitles(); SearchResultsPage.GoToNextSearchResultPage(); CollectionAssert.AreNotEquivalent(searchResultFromFirstPage, SearchResultsPage.GetSearchTitles(), "Search results are the same on two pages"); }
public void RecommendedSearchHasSearchString() { MainPageService.GotoBasePage(); MainPageService.Search("GitHub"); Assert.That(SearchResultsPage.RecommendedSearchList().All(el => el.Contains("github")), "The element without search word is exist"); }
public void MatchLinkOfResult() { MainPageService.GotoBasePage(); MainPageService.Search("linkedin"); Assert.That(SearchResultsPage.GetSearchLinks()[0].Contains("www.linkedin.com"), "The link of result of searching string doesn't match"); }
public void MachDescriptionOfResult() { MainPageService.GotoBasePage(); MainPageService.Search("stack overflow"); Assert.That(SearchResultsPage.GetDescriptionResultByIndex(0).Contains("Stack Overflow is the largest, most trusted online community for"), "The description of result of searching string doesn't match"); }
public void SecondFailedTest() { MainPageService.GotoBasePage(); MainPageService.Search("films 2010"); Assert.AreEqual(SearchResultsPage.GetDescriptionByCategories("Toy Story 3"), "action"); }
public void GoogleImageIsDisplayed() { MainPageService.GotoBasePage(); Assert.That(MainPageService.GetPage().GoogleImage.Displayed(), "Google image isn't displayed or isn't found"); }
public void FirstFailedTest() { MainPageService.GotoBasePage(); MainPageService.Search("actions films"); Assert.That(SearchResultsPage.GetNamesByDescription("2015").Count != 2, "Not enough films in category"); }
public void TakeAllFilmsByDescription() { MainPageService.GotoBasePage(); MainPageService.Search("Comedies"); Assert.That(SearchResultsPage.GetNamesByDescription("2004").Count == 6, "Not enough films in category"); }
public void SearchCategoryDisplayed() { MainPageService.GotoBasePage(); MainPageService.Search("films 2010"); Assert.That(SearchResultsPage.SearchCategories().All(el => el.WrappedElement.Displayed), "Search category isn't displayed"); }
public void AllSearchResultsHaveDescription() { MainPageService.GotoBasePage(); MainPageService.Search("films 2010"); Assert.That(SearchResultsPage.SearchCategories().All(el => el.Description.Length > 0), "Any search result doesn't have a description"); }
public void TheDescriptionOfSearchIsMatched() { MainPageService.GotoBasePage(); MainPageService.Search("films 2010"); Assert.AreEqual(SearchResultsPage.GetDescriptionByCategories("Toy Story 3"), "Comedy"); }