Fix for Afterpay flakiness
This commit is contained in:
parent
5682987c06
commit
bc5331bd65
1 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { expect, type Locator, type Page } from '@playwright/test';
|
||||
import { BasePage } from './BasePage';
|
||||
import { IPaymentDetails } from '@business-logic/types/CustomerDetails';
|
||||
import { PaymentType } from '@business-logic/types/Enums';
|
||||
import { IClaimDetails, IPaymentDetails } from '@business-logic/types/CustomerDetails';
|
||||
import { PaymentType, ServicePackage } from '@business-logic/types/Enums';
|
||||
import { PaymentPage } from './PaymentPage';
|
||||
import { AfterpayPage } from './AfterpayPage';
|
||||
import { PaypalPage } from './PaypalPage';
|
||||
|
|
@ -40,7 +40,7 @@ export class PaymentMethodPage extends BasePage {
|
|||
this.submitButton = this.page.getByRole('button', { name: 'Submit' });
|
||||
}
|
||||
|
||||
async executePayment(paymentDetails: IPaymentDetails) {
|
||||
async executePayment(paymentDetails: IPaymentDetails, claimDetails: IClaimDetails, servicePackage: ServicePackage) {
|
||||
const browserContext = this.page.context();
|
||||
|
||||
switch (paymentDetails.paymentType) {
|
||||
|
|
@ -67,7 +67,7 @@ export class PaymentMethodPage extends BasePage {
|
|||
const afterpayPage = new AfterpayPage(afterpayPopup);
|
||||
|
||||
// Execute payment
|
||||
await afterpayPage.executeAfterpayPayment(paymentDetails);
|
||||
await afterpayPage.executeAfterpayPayment(paymentDetails, claimDetails, servicePackage);
|
||||
break;
|
||||
|
||||
case PaymentType.PayAtService:
|
||||
|
|
|
|||
Loading…
Reference in a new issue