52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
import { ITestData, getDefaultExperimentsData } from 'framework/TestData';
|
|
import { VehicleDamage, VehicleLookupType } from 'safelite-playwright-core';
|
|
import { ITestCase } from '../framework/Typedefs';
|
|
import { getDefaultTestData, setFakerSeedFromTestName } from 'safelite-playwright-core';
|
|
|
|
setFakerSeedFromTestName("CashDiamondReoBailout");
|
|
|
|
const partsNotFoundBailoutTestData: Partial<ITestData> = {
|
|
...getDefaultTestData(),
|
|
|
|
isHeavyTruck: true,
|
|
|
|
customerDetails: {
|
|
...getDefaultTestData().customerDetails!,
|
|
address: {
|
|
...getDefaultTestData().customerDetails!.address,
|
|
postalCode: '43085'
|
|
}
|
|
},
|
|
|
|
vehicleDetails: {
|
|
...getDefaultTestData().vehicleDetails!,
|
|
year: '1974',
|
|
make: 'Diamond Reo',
|
|
model: 'CF65',
|
|
style: 'cabover',
|
|
vehicleLookupType: VehicleLookupType.Zip,
|
|
},
|
|
|
|
vehicleDamage: [
|
|
VehicleDamage.WindshieldCrack
|
|
],
|
|
|
|
bailoutFlags: {
|
|
isVehicleLookupBailout: true
|
|
},
|
|
|
|
experiments: {
|
|
...getDefaultExperimentsData()
|
|
}
|
|
};
|
|
|
|
const partsNotFoundBailoutTests: ITestCase[] = [];
|
|
|
|
const tc = {
|
|
name: `PartsNotFoundBailout`,
|
|
tags: ['@E2E', '@PartsNotFoundBailout', '@test_report', '@Bailout'],
|
|
testData: partsNotFoundBailoutTestData
|
|
};
|
|
partsNotFoundBailoutTests.push(tc);
|
|
|
|
export default partsNotFoundBailoutTests;
|