woocommerce-paypal-payments/tests/qa/utils/frontend/pay-for-order.ts
Sedat a956444602
Initial commit for QA folder
POM files created.
Visual tests moved to PCP repo.
Irrelevant files removed.
2025-02-05 16:40:30 +03:00

31 lines
581 B
TypeScript

/**
* External dependencies
*/
import { PayForOrder as PayForOrderBase } from '@inpsyde/playwright-utils/build';
/**
* Internal dependencies
*/
import { PayPalUI } from './paypal-ui';
export class PayForOrder extends PayForOrderBase {
ppui: PayPalUI;
constructor( { page, ppui } ) {
super( { page } );
this.ppui = ppui;
}
// Locators
// Actions
makeOrder = async ( tested, order ) => {
await this.visit( order.id, order.order_key );
await this.ppui.makeClassicPayment( {
merchant: tested.merchant,
payment: tested.payment,
} );
};
// Assertions
}