Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
An atomic test that sets the state of the application
public void ShouldBeAbleToCheckOutWithItems()
var overviewPage = new CheckoutOverviewPage(Driver);
//We don't need to actually use th UI to add items to the cart.
//I'm injecting Javascript to control the state of the cart
//Act - very few UI interactions
IsCheckoutComplete.Should().BeTrue("we finished the checkout process"); //Assert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment