//Imports here import { ITestData } from 'framework/TestData' import { ServiceLocation, DamageType, PartQuestionType, VehicleDamage, PaymentType, Flow } from 'safelite-playwright-core'; import { PaymentMethod } from "framework/localTypes/Enums"; import { ITestCase } from '../framework/Typedefs' import { VehicleLookupType } from 'safelite-playwright-core'; import { getDefaultTestData, setFakerSeedFromTestName } from 'safelite-playwright-core'; // Set the seed based on test name for consistent but unique data setFakerSeedFromTestName("InsuranceAcuityPaypal"); // Now get the test data with the seeded faker const insuranceAcuityPaypalData: Partial = { ...getDefaultTestData(), // Get default data with current seed // Key feature: Insurance flow with Acuity paymentMethod: PaymentMethod.Insurance, // Insurance claim flags isDuplicateClaim: true, flow: Flow.Managed, isUseVehicleOnPolicy: true, // Override customer details for Kentucky location customerDetails: { ...getDefaultTestData().customerDetails!, address: { street: getDefaultTestData().customerDetails!.address.street, city: 'Concord', state: 'Kentucky', postalCode: '42071', country: 'United States' } }, // Insurance claim details claimDetails: { client: 'ACUITY INSURANCE', policyNumber: 'Mock532809F', policyDeductible: 0, damageDate: new Date(new Date().setDate(new Date().getDate() - 1)).toLocaleDateString('en-US', {month: '2-digit', day: '2-digit', year: 'numeric'}), damageCause: DamageType.Hail }, // Heavy duty truck details with VIN lookup vehicleDetails: { ...getDefaultTestData().vehicleDetails!, year: '2006', make: 'Ford', model: 'F Series F550', style: '2 door standard cab', vin: '1FDAF57P86EA68105', vehicleLookupType: VehicleLookupType.Vin, }, // No need to override vehicleDamage as it already defaults to WindshieldCrack // Override for in-shop appointment appointmentDetails: { serviceLocation: ServiceLocation.InShop, shopAddress: '8985 Yellow Brick Rd, Rosedale, MD 21237', appointmentDate: getDefaultTestData().appointmentDetails?.appointmentDate }, // Part questions for windshield vehiclePartQuestions: [ { partQuestionType: PartQuestionType.WindshieldColor, isOnPage: true, optionToSelect: 'Green Tint', secondaryQuestionOptionToSelect: 'solar, third visor frit, aftermarket' }, ], // Other vehicles on policy otherVehiclesOnPolicy: [ { year: '2000', make: 'Ford', model: 'F250 Super Duty', vehicleLookupType: VehicleLookupType.Vin } ], // Override payment details (empty because we skip payment method page in insurance flow) paymentDetails: {} } const insuranceAcuityPaypalTests: ITestCase[] = []; const tc = { name: `InsuranceAcuityPaypal`, tags: ['@E2E','@InsuranceAcuityPaypal', '@test_report', '@Insurance', '@CASH-1187', '@CASH-848'], testData: insuranceAcuityPaypalData }; insuranceAcuityPaypalTests.push(tc); export default insuranceAcuityPaypalTests;