Skip to content

Commit 94aff11

Browse files
committed
Sample end-to-end workflow scenarios
1 parent 73e5cb7 commit 94aff11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/com/serenitydojo/playwright/toolshop/catalog/workflow/PurchaseWorkflow.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public void addProductToCart(String productName, int quantity) {
3535
productDetails.addToCart();
3636
}
3737

38+
@Step("Check out the cart")
3839
public void checkOutCart() {
3940
navBar.openCart();
4041
shoppingCart.proceedToCheckout();
@@ -44,10 +45,12 @@ public void proceedToCheckoutAfterAuthentication() {
4445
shoppingCart.proceedToCheckoutAfterAuthentication();
4546
}
4647

48+
@Step("Confirm address")
4749
public void confirmAddress() {
4850
addressForm.confirmAddress();
4951
}
5052

53+
@Step("Choose payment method")
5154
public void choosePaymentMethod(String paymentMethod) {
5255
paymentForm.choosePaymentMethod(paymentMethod);
5356
}

0 commit comments

Comments
 (0)