public void SearchRelevantForFullMatchTest() { SearchFacade.SimpleSearch("Моя первая книга", WaitingType.PageLoad); Assert.IsTrue(ProductListFacade.ContainsProductWithKey("25000410034")); // Моя первая книга Assert.IsTrue(ProductListFacade.ContainsProductWithKey("33000001800")); // Моя первая книга о России }
public void SearchExactIsbnNodashTest() { SearchFacade.SimpleSearch("5962601327", WaitingType.PageLoad); Assert.IsTrue(Selenium.IsTextPresent("Deadline.")); Assert.IsTrue(Selenium.GetLocation().Contains("/books/product/25000038009")); }
public void SearchEmptyResultTest() { SearchFacade.SimpleSearch("123456", WaitingType.PageLoad); Assert.IsTrue(SearchFacade.IsEmptyResult()); }
public void SearchEmptyTest() { SearchFacade.SimpleSearch("", WaitingType.SmallTimeout); Assert.IsTrue(SearchFacade.IsWrongSearchCriteria()); }