Пример #1
0
 public void WhenAnItemIsAddedToTheCart()
 {
     EtsySearchPage        = new EtsySearchPageModel(Driver);
     EtsySearchResultsPage = EtsySearchPage.SearchForSomething("Hat");
     EtsyItemPage          = EtsySearchResultsPage.ClickFirstResult();
     ScenarioContext.Current["Item Title"] = EtsyItemPage.ItemTitle();
     EtsyCartPage = EtsyItemPage.ClickAddToCart();
 }
Пример #2
0
 public void ThenIShouldSeeNoSearchResults(string term)
 {
     StringAssert.DoesNotMatch(@"\d+,?\d* items for " + term, EtsySearchResultsPage.SearchResultsText());
     StringAssert.IsMatch(@"^We didn't find anything for " + term + @"\.$", EtsySearchResultsPage.SearchResultsText());
 }
Пример #3
0
 public void ThenIShouldSeeTheSearchWasFor(string newTerm, string oldTerm)
 {
     StringAssert.IsMatch("No results found for " + oldTerm + ", searching instead for " + newTerm + ".", EtsySearchResultsPage.SpellingText());
 }