removes recalinfo boolean and uses isRecalVehicle for handling page in ins
Updates the `isRecalNotification` flag to `isRecalVehicle` for better clarity and consistency across the codebase. This change ensures that the flag's name accurately reflects its purpose: to indicate whether recalibration information for a vehicle is required.
This commit is contained in:
parent
fa93335cc6
commit
2da134bbb1
3 changed files with 3 additions and 4 deletions
|
|
@ -25,7 +25,6 @@ export interface ITestData {
|
|||
isPolicyFound: boolean,
|
||||
otherVehiclesOnPolicy: IVehicleDetails[], // IF defined, we validate that the vehicles are present.
|
||||
isUseVehicleOnPolicy: boolean, // Should we use the vehicle on the policy?
|
||||
isRecalNotification: boolean, // Does Recalibration Information page show up?
|
||||
endorsements: IEndorsementDetails[],
|
||||
hasOemEndorsement: boolean, // OEM Endorsement does not appear on endorsements page, so it has a separate flag.s
|
||||
skipEstimatePage: boolean,
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
}
|
||||
|
||||
export async function handleInsuranceFlow(testCase: TestCase) {
|
||||
const { isPolicyFound, isPolicyDriver, endorsements, isRecalNotification } = testCase.testData;
|
||||
const { isPolicyFound, isPolicyDriver, endorsements, isRecalVehicle } = testCase.testData;
|
||||
|
||||
// Check if the insurance policy has endorsements
|
||||
const hasEndorsements = endorsements && endorsements.length > 0;
|
||||
|
|
@ -340,7 +340,7 @@ export async function handleInsuranceFlow(testCase: TestCase) {
|
|||
let policyInfoSubmittedPage = testCase.pages.policyInfoSubmittedPage;
|
||||
await policyInfoSubmittedPage.handlePolicyInfoSubmittedPage();
|
||||
|
||||
if(isRecalNotification)
|
||||
if(isRecalVehicle)
|
||||
{
|
||||
let recalibrationInfoPage = testCase.pages.recalibrationInfoPage;
|
||||
await recalibrationInfoPage.handleRecalibrationInfoPage();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ const insuranceITAC21stCenturyData: Partial<ITestData> = {
|
|||
isDuplicateClaim: true,
|
||||
isPolicyFound: true,
|
||||
isUseVehicleOnPolicy: true,
|
||||
isRecalNotification: true, // Special flag for recalibration notification
|
||||
isRecalVehicle: true, // Special flag for recalibration notification
|
||||
|
||||
// Override customer details for California location
|
||||
customerDetails: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue