public void GivenAIsAddedToTheShoppingCart(string parent, string child, string grandChild, string product) { homePageDriver.GoToHomePage(); homePageDriver.SelectProductMenuItem(parent, child, grandChild); catalogPageDriver.AddProductToCart(product, "continueshopping"); shoppingCartPageDriver.GoToShoppingCart(); shoppingCartPageDriver.isProductInCart(product).Should().BeTrue(); shoppingCartPageDriver.isShoppingCartEmpty().Should().BeFalse(); }
public void WhenTheShopperViewsTheCollection(string parent, string child, string grandchild) { homePageDriver.SelectProductMenuItem(parent, child, grandchild); catalogPageDriver.isCategoryShown(grandchild).Should().BeTrue(); }