public void AddMultipleItems() { LoginPage login = new LoginPage(_driver); login.LoginWithAValidCredential(); InventoryPage inventory = new InventoryPage(_driver); var inventoryItems = inventory.AddProductsToCart(); var badgeCount = inventory.GetCartCount(); Assert.Equal(badgeCount, inventoryItems.Count); }
public void Checkout() { LoginPage login = new LoginPage(_driver); login.LoginWithAValidCredential(); InventoryPage inventory = new InventoryPage(_driver); inventory.AddProductsToCart(); inventory.ClickOnCartIcon(); CartPage cart = new CartPage(_driver); cart.ClickOnCheckOutButton(); CheckOutYourInformationPage checkout = new CheckOutYourInformationPage(_driver); checkout.FillOutTheInformation("Name", "Last", "122345"); CheckOutOverview checkoutTwo = new CheckOutOverview(_driver); checkoutTwo.CheckOutLastStep(); }