Skip to content

[QA] add: BCDC e2e tests for classic checkout (Mexico)#4297

Open
syde-piotr-ostrowski wants to merge 6 commits intodev/developfrom
dev/qa/add-card-button-bcdc-e2e
Open

[QA] add: BCDC e2e tests for classic checkout (Mexico)#4297
syde-piotr-ostrowski wants to merge 6 commits intodev/developfrom
dev/qa/add-card-button-bcdc-e2e

Conversation

@syde-piotr-ostrowski
Copy link
Copy Markdown
Collaborator

@syde-piotr-ostrowski syde-piotr-ostrowski commented Apr 23, 2026

Solves PCP-5985

Covers:

These tests were present in the legacy UI tests set, but were not present in the tests covering new UI.

These scenarios are still applicable to the current plugin codebase and now they are will be available again.

One of the tests (PCP-1211) was tagged Critical.

The tests run against a Mexico merchant. A helper was added to handle PayPal's billing address form that appears inside the card modal for Latin America.

Comment thread tests/qa/utils/frontend/paypal-ui-classic.ts Outdated
@syde-piotr-ostrowski
Copy link
Copy Markdown
Collaborator Author

@mishautkin Updated the BCDC naming and billing form handling as suggested

Copy link
Copy Markdown
Collaborator

@mishautkin mishautkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better but please cleanup the remaining standardCardButton and debitOrCreditCard in favor of bcdc. Thank you!

// Latin America (Mexico) uses minimal mode: PayPal shows its own billing form inside the modal
// Fill those fields from the WC checkout form when they are visible.
// Latin America (Mexico) uses minimal mode: PayPal shows its own billing form inside the modal.
const firstNameInput = this.standardCardButtonFirstNameInput();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we decided to get rid from standardCardButton and debitOrCreditCard in favor of bcdc, could you please also rename the locator methods (prefixed standardCardButton/debitOrCreditCard) with and cleanup unused ones?

Comment thread tests/qa/utils/frontend/paypal-ui.ts Outdated
@@ -357,7 +359,8 @@ export class PayPalUi {
// Standard Card Button
if ( gateway.id === 'ppcp-card-button-gateway' ) {
await this.completeStandardCardButtonPayment(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to completeBcdcPayment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants