Skip to content

Commit

Permalink
chore: adjust credit card e2e test (#689)
Browse files Browse the repository at this point in the history
* chore: adjust credit card e2e test

* fix: credit card test
  • Loading branch information
maxiroellplenty authored Sep 24, 2024
1 parent 3a2041a commit 346cfd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions apps/web/__tests__/support/pageObjects/CheckoutPageObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ export class CheckoutPageObject extends PageObject {
return this;
}

placeCreditCartOrder() {
this.placeOrderButtons.click();
return this;
}

displaySuccessPage() {
this.displaySuccessPages.should('be.visible');
this.thankYouBanner.should('be.visible');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ describe('Smoke: PayPal credit card order', () => {
.goToCheckout()
.goToGuestCheckout()
.fillContactInformationForm()
.addBillingAddress()
.fillShippingAddressForm()
.acceptTerms()
.checkCreditCard()
.placeOrderButton()
.placeCreditCartOrder()
.fillCreditCardForm()
.payCreditCard()
.displaySuccessPage()
Expand Down

0 comments on commit 346cfd5

Please sign in to comment.