From dd7d0221aa496012dd70dcaaaf6c8c60d2c65822 Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Wed, 9 Jul 2025 10:27:26 -0400 Subject: [PATCH] Adds managed flow to insurance test data Adds the `Managed` flow type to the insurance test data. Specifies an empty payment details object for the insurance flow to skip the payment method page. --- playwright-tests/tests/0000__M.test.ts | 2 +- playwright-tests/tests/InsuranceMeemicNearSchoolVerified.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/playwright-tests/tests/0000__M.test.ts b/playwright-tests/tests/0000__M.test.ts index 495a202e6..39c02ffb7 100644 --- a/playwright-tests/tests/0000__M.test.ts +++ b/playwright-tests/tests/0000__M.test.ts @@ -352,7 +352,7 @@ export async function handleInsuranceFlow(testCase: TestCase) { let endorsementsPage = testCase.pages.endorsementsPage; await endorsementsPage.handleEndorsementsPage(testCase.testData); } - }else { + } else { //Handle verify details page let verifyDetailsPage = testCase.pages.verifyDetailsPage; diff --git a/playwright-tests/tests/InsuranceMeemicNearSchoolVerified.ts b/playwright-tests/tests/InsuranceMeemicNearSchoolVerified.ts index fb6ac2c5d..c57526e1a 100644 --- a/playwright-tests/tests/InsuranceMeemicNearSchoolVerified.ts +++ b/playwright-tests/tests/InsuranceMeemicNearSchoolVerified.ts @@ -16,6 +16,7 @@ const insuranceMeemicNearSchoolVerifiedData: Partial = { paymentMethod: PaymentMethod.Insurance, isDuplicateClaim: false, + flow: Flow.Managed, isPolicyFound: true, isUseVehicleOnPolicy: true, isRecalVehicle: false, @@ -58,7 +59,10 @@ const insuranceMeemicNearSchoolVerifiedData: Partial = { isOnPage: true, optionToSelect: 'No' }, - ] + ], + + // Override payment details (empty because we skip payment method page in insurance flow) + paymentDetails: {} }; const insuranceMeemicNearSchoolVerifiedTests: ITestCase[] = [];