74 lines
2.3 KiB
TypeScript
74 lines
2.3 KiB
TypeScript
import { ITestData, getDefaultExperimentsData } from 'framework/TestData'
|
|
import { ServiceLocation, DamageType } from 'safelite-playwright-core';
|
|
import { ITestCase } from '../framework/Typedefs'
|
|
import { PaymentMethod } from "framework/localTypes/Enums";
|
|
import { VehicleLookupType } from 'safelite-playwright-core';
|
|
import { getDefaultTestData, setFakerSeedFromTestName } from 'safelite-playwright-core';
|
|
|
|
setFakerSeedFromTestName("InsuranceAllstateBigTruckUnverified");
|
|
|
|
const insuranceAllstateBigTruckUnverifiedData: Partial<ITestData> = {
|
|
...getDefaultTestData(),
|
|
|
|
paymentMethod: PaymentMethod.Insurance,
|
|
|
|
isPolicyFound: false,
|
|
isPolicyUnverified: true,
|
|
isHeavyTruck: true,
|
|
isCanNotRecal: true,
|
|
|
|
customerDetails: {
|
|
...getDefaultTestData().customerDetails!,
|
|
firstName: 'Big',
|
|
lastName: 'Truck',
|
|
address: {
|
|
...getDefaultTestData().customerDetails!.address,
|
|
city: 'Dayton',
|
|
state: 'Ohio',
|
|
postalCode: '45424'
|
|
}
|
|
},
|
|
|
|
claimDetails: {
|
|
client: 'Allstate',
|
|
policyNumber: 'MockUnverifiedBigTruck',
|
|
policyDeductible: "Unverified",
|
|
policyZip: '45424',
|
|
damageDate: new Date(new Date().setDate(new Date().getDate() - 1))
|
|
.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit', year: 'numeric' }),
|
|
damageCause: DamageType.Rock
|
|
},
|
|
|
|
vehicleDetails: {
|
|
...getDefaultTestData().vehicleDetails!,
|
|
year: '2025',
|
|
make: 'Peterbilt',
|
|
model: '579',
|
|
style: 'conventional cab',
|
|
vin: '1XPBDP9X6SD693446',
|
|
vehicleLookupType: VehicleLookupType.Zip,
|
|
},
|
|
|
|
appointmentDetails: {
|
|
serviceLocation: ServiceLocation.InShop,
|
|
shopAddress: '5719 Brandt Pike, Dayton, OH 45424',
|
|
appointmentDate: getDefaultTestData().appointmentDetails?.appointmentDate
|
|
},
|
|
|
|
paymentDetails: {},
|
|
|
|
experiments: {
|
|
...getDefaultExperimentsData()
|
|
}
|
|
}
|
|
|
|
const insuranceAllstateBigTruckUnverifiedTests: ITestCase[] = [];
|
|
|
|
const tc = {
|
|
name: `InsuranceAllstateBigTruckUnverified`,
|
|
tags: ['@E2E', '@InsuranceAllstateBigTruckUnverified', '@test_report', '@Insurance'],
|
|
testData: insuranceAllstateBigTruckUnverifiedData
|
|
};
|
|
insuranceAllstateBigTruckUnverifiedTests.push(tc);
|
|
|
|
export default insuranceAllstateBigTruckUnverifiedTests;
|