示例#1
0
 public void containsItems(Item... items) {
   for (Item item : items) {
     petstore
         .goToReceiptPage(orderNumber)
         .showsLineItem(item.number, item.description, item.totalPrice);
   }
 }
示例#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();
 }
示例#3
0
 public void isBilledTo(String firstName, String lastName, String emailAddress) {
   petstore
       .goToReceiptPage(orderNumber)
       .showsBillingInformation(firstName, lastName, emailAddress);
 }
示例#4
0
 public void wasPaidUsing(String cardType, String cardNumber, String cardExpiryDate) {
   petstore
       .goToReceiptPage(orderNumber)
       .showsCreditCardDetails(cardType, cardNumber, cardExpiryDate);
 }
示例#5
0
 public void hasReceiptTotal(String total) {
   petstore.goToReceiptPage(orderNumber).showsTotalPaid(total);
 }
示例#6
0
 public void amountsTo(String amount) {
   petstore.goToCartPage().checkout().showsTotalToPay(amount).continueShopping();
 }
 public void showImage() {
   petstore.goToAboutPage().showImageAbout();
 }