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:
parent
a515fece15
commit
dd7d0221aa
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ const insuranceMeemicNearSchoolVerifiedData: Partial<ITestData> = {
|
|||
paymentMethod: PaymentMethod.Insurance,
|
||||
|
||||
isDuplicateClaim: false,
|
||||
flow: Flow.Managed,
|
||||
isPolicyFound: true,
|
||||
isUseVehicleOnPolicy: true,
|
||||
isRecalVehicle: false,
|
||||
|
|
@ -58,7 +59,10 @@ const insuranceMeemicNearSchoolVerifiedData: Partial<ITestData> = {
|
|||
isOnPage: true,
|
||||
optionToSelect: 'No'
|
||||
},
|
||||
]
|
||||
],
|
||||
|
||||
// Override payment details (empty because we skip payment method page in insurance flow)
|
||||
paymentDetails: {}
|
||||
};
|
||||
|
||||
const insuranceMeemicNearSchoolVerifiedTests: ITestCase[] = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue