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.
This commit is contained in:
maguire-arman 2025-07-09 10:27:26 -04:00
parent a515fece15
commit dd7d0221aa
2 changed files with 6 additions and 2 deletions

View file

@ -352,7 +352,7 @@ export async function handleInsuranceFlow(testCase: TestCase) {
let endorsementsPage = testCase.pages.endorsementsPage; let endorsementsPage = testCase.pages.endorsementsPage;
await endorsementsPage.handleEndorsementsPage(testCase.testData); await endorsementsPage.handleEndorsementsPage(testCase.testData);
} }
}else { } else {
//Handle verify details page //Handle verify details page
let verifyDetailsPage = testCase.pages.verifyDetailsPage; let verifyDetailsPage = testCase.pages.verifyDetailsPage;

View file

@ -16,6 +16,7 @@ const insuranceMeemicNearSchoolVerifiedData: Partial<ITestData> = {
paymentMethod: PaymentMethod.Insurance, paymentMethod: PaymentMethod.Insurance,
isDuplicateClaim: false, isDuplicateClaim: false,
flow: Flow.Managed,
isPolicyFound: true, isPolicyFound: true,
isUseVehicleOnPolicy: true, isUseVehicleOnPolicy: true,
isRecalVehicle: false, isRecalVehicle: false,
@ -58,7 +59,10 @@ const insuranceMeemicNearSchoolVerifiedData: Partial<ITestData> = {
isOnPage: true, isOnPage: true,
optionToSelect: 'No' optionToSelect: 'No'
}, },
] ],
// Override payment details (empty because we skip payment method page in insurance flow)
paymentDetails: {}
}; };
const insuranceMeemicNearSchoolVerifiedTests: ITestCase[] = []; const insuranceMeemicNearSchoolVerifiedTests: ITestCase[] = [];