Beispiel #1
0
 public void containsItems(Item... items) {
   for (Item item : items) {
     petstore
         .goToReceiptPage(orderNumber)
         .showsLineItem(item.number, item.description, item.totalPrice);
   }
 }
Beispiel #2
0
 public void confirm(
     String firstName,
     String lastName,
     String email,
     String cardType,
     String cardNumber,
     String cardExpiryDate) {
   CheckoutPage checkoutPage = petstore.goToCartPage().checkout();
   ReceiptPage receiptPage =
       checkoutPage
           .willBillTo(firstName, lastName, email)
           .willPayUsingCreditCard(cardType, cardNumber, cardExpiryDate)
           .confirm();
   orderNumber = receiptPage.getOrderNumber();
   receiptPage.continueShopping();
 }
Beispiel #3
0
 public void isBilledTo(String firstName, String lastName, String emailAddress) {
   petstore
       .goToReceiptPage(orderNumber)
       .showsBillingInformation(firstName, lastName, emailAddress);
 }
Beispiel #4
0
 public void wasPaidUsing(String cardType, String cardNumber, String cardExpiryDate) {
   petstore
       .goToReceiptPage(orderNumber)
       .showsCreditCardDetails(cardType, cardNumber, cardExpiryDate);
 }
Beispiel #5
0
 public void hasReceiptTotal(String total) {
   petstore.goToReceiptPage(orderNumber).showsTotalPaid(total);
 }
Beispiel #6
0
 public void amountsTo(String amount) {
   petstore.goToCartPage().checkout().showsTotalToPay(amount).continueShopping();
 }
 public void showImage() {
   petstore.goToAboutPage().showImageAbout();
 }