Update test data for scenarios
This commit is contained in:
parent
5c22d0ba31
commit
3fe2e23959
20 changed files with 71 additions and 94 deletions
|
|
@ -25,7 +25,7 @@ const essentialReplaceDynamicAdasData: Partial<ITestData> = {
|
|||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
city: 'Chicago',
|
||||
state: 'Illinois',
|
||||
state: 'ILLINOIS',
|
||||
postalCode: '60645',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ const essentialRepairMobileHyundaiData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '9220 Pennythorne Court',
|
||||
city: 'Raleigh',
|
||||
state: 'North Carolina',
|
||||
state: 'NORTH CAROLINA',
|
||||
postalCode: '27615',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ const essentialRepairMobileHyundaiData: Partial<ITestData> = {
|
|||
appointmentDetails: {
|
||||
serviceLocation: ServiceLocation.Mobile,
|
||||
serviceAddress: {
|
||||
street: "2088 Haviland Road, Columbus, OH, USA",
|
||||
street: "2088 Haviland Road",
|
||||
city:"Vermillion",
|
||||
state: "Ohio",
|
||||
postalCode: "44089",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ const essentialPartsServiceErrorData: Partial<ITestData> = {
|
|||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
city: 'Tulare',
|
||||
state: 'California',
|
||||
state: 'CALIFORNIA',
|
||||
postalCode: '93247',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@ const essentialVehicleNotFoundData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '71529 Maple Street',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ const essentialDoNotSeeShopData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '9799 Heartland Court',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ const essentialUnqiqueGlassData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '3202 S Mason Ave',
|
||||
city: 'Tacoma',
|
||||
state: 'Washington',
|
||||
state: 'WASHINGTON',
|
||||
postalCode: '98409',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
@ -51,13 +51,12 @@ const essentialUnqiqueGlassData: Partial<ITestData> = {
|
|||
{
|
||||
partQuestionType: PartQuestionType.WindshieldColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint'
|
||||
optionToSelect: 'Third Visor Frit'
|
||||
},
|
||||
{
|
||||
partQuestionType: PartQuestionType.DriverSideColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint',
|
||||
secondaryQuestionOptionToSelect: 'solar, driver side, rear'
|
||||
optionToSelect: 'Solar, Driver side, Rear, Movable, Exc. 118" Wb, Aftermarket'
|
||||
},
|
||||
],
|
||||
appointmentDetails: {
|
||||
|
|
|
|||
|
|
@ -13,46 +13,20 @@ const essentialReplaceData: Partial<ITestData> = {
|
|||
isPolicyFound: false,
|
||||
endorsements: [],
|
||||
isReplace: false,
|
||||
vehiclePartQuestions: [
|
||||
{
|
||||
partQuestionType: PartQuestionType.WindshieldColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint'
|
||||
},
|
||||
{
|
||||
partQuestionType: PartQuestionType.DriverFrontColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint'
|
||||
},
|
||||
{
|
||||
partQuestionType: PartQuestionType.DriverRearColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint'
|
||||
},
|
||||
{
|
||||
partQuestionType: PartQuestionType.PassengerFrontColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint'
|
||||
},
|
||||
{
|
||||
partQuestionType: PartQuestionType.PassengerRearColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint'
|
||||
},
|
||||
],
|
||||
partQuestions: [],
|
||||
isSafelite: true,
|
||||
servicePackage: faker.helpers.enumValue(ServicePackage),
|
||||
customerDetails: {
|
||||
firstName: faker.person.firstName(),
|
||||
lastName: 'Reed',
|
||||
lastName: 'Tyler',
|
||||
email: "itqatest@safelite.com",
|
||||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: '10212 JEWEL CT',// DO NOT use fake address here as this scenario search vehicle by address //faker.location.streetAddress(),
|
||||
city: 'CONROE',
|
||||
state: 'Texas',
|
||||
postalCode: '77385',
|
||||
street: '503 OLD CHATTANOOGA PIKE SW CLEVELAND',// DO NOT use fake address here as this scenario search vehicle by address //faker.location.streetAddress(),
|
||||
city: 'Cleveland',
|
||||
state: 'TENNESSEE',
|
||||
postalCode: '37311',
|
||||
country: 'United States'
|
||||
}
|
||||
},
|
||||
|
|
@ -63,11 +37,10 @@ const essentialReplaceData: Partial<ITestData> = {
|
|||
damageCause: DamageType.Other
|
||||
},
|
||||
vehicleDetails: {
|
||||
year: '2015',
|
||||
make: 'Ford',
|
||||
model: 'F Series F150',
|
||||
style: '2 door super cab',
|
||||
vin: '5N1AN0NW9BC524974',
|
||||
year: '2010',
|
||||
make: 'Lincoln',
|
||||
model: 'MKZ',
|
||||
style: '4 door sedan',
|
||||
vehicleLookupType: VehicleLookupType.Address,
|
||||
},
|
||||
vehicleDamage: [
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ const essentialRepairMobileData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
street: '123 Test Road',
|
||||
city: 'Columbus',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const essentialReplaceData: Partial<ITestData> = {
|
|||
{
|
||||
partQuestionType: PartQuestionType.WindshieldColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint, Blue Shade'
|
||||
optionToSelect: 'Solar'
|
||||
},
|
||||
// {
|
||||
// partQuestionType: PartQuestionType.DriverFrontColor,
|
||||
|
|
@ -35,10 +35,9 @@ const essentialReplaceData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
// street: faker.location.streetAddress(),
|
||||
street: '456 Columbus Pike',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
street: '1000 Hart Road',
|
||||
city: 'Columbus',
|
||||
state: 'OHIO',
|
||||
postalCode: '43223',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ const essentialHappyPathData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '6400 Emerald Parkway',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,13 +26,11 @@ const essentialTpaEnabledData: Partial<ITestData> = {
|
|||
lastName: faker.person.lastName(),
|
||||
email: "itqatest@safelite.com",
|
||||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
// phoneNumber: faker.phone.toString(),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
// street: faker.location.streetAddress(),
|
||||
street: '134 Woodlands Place',
|
||||
street: '3300 Refugee Rd',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43232',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,10 +30,9 @@ const essentialTpaEnabledData: Partial<ITestData> = {
|
|||
// phoneNumber: faker.phone.toString(),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
// street: faker.location.streetAddress(),
|
||||
street: '134 Woodlands Place',
|
||||
street: '1st St S',
|
||||
city: 'Jacksonville Beach',
|
||||
state: 'Florida',
|
||||
state: 'FLORIDA',
|
||||
postalCode: '32250',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@ const essentialVehicleLookupBailoutData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '6400 Emerald Parkway',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@ const essentialPriceServiceErrorBailoutData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '9799 Heartland Court',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,12 +13,14 @@ const essentialServiceableBigTruckData: Partial<ITestData> = {
|
|||
isPolicyFound: false,
|
||||
endorsements: [],
|
||||
isReplace: true,
|
||||
bailoutFlags: {
|
||||
isHeavyTruckVehicleBailout: true,
|
||||
},
|
||||
vehiclePartQuestions: [
|
||||
{
|
||||
partQuestionType: PartQuestionType.WindshieldColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint',
|
||||
secondaryQuestionOptionToSelect: 'one-piece, w/lane departure warning system',
|
||||
optionToSelect: 'One-Piece, With Lane Departure Warning System',
|
||||
},
|
||||
],
|
||||
isSafelite: true,
|
||||
|
|
@ -30,9 +32,9 @@ const essentialServiceableBigTruckData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9]{3}-[0-9]{4}/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '9799 Heartland Court',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ const essentialNonServiceableBigTruckData: Partial<ITestData> = {
|
|||
clientTag: 'ALL_ESSENTIAL',
|
||||
isDuplicateClaim: false,
|
||||
isPolicyFound: false,
|
||||
isNonServiceable: true,
|
||||
bailoutFlags: {
|
||||
isHeavyTruckVehicleBailout: true,
|
||||
},
|
||||
endorsements: [],
|
||||
isReplace: true,
|
||||
partQuestions: undefined,
|
||||
|
|
@ -23,9 +27,9 @@ const essentialNonServiceableBigTruckData: Partial<ITestData> = {
|
|||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9]{3}-[0-9]{4}/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '9799 Heartland Court',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
@ -50,8 +54,6 @@ const essentialNonServiceableBigTruckData: Partial<ITestData> = {
|
|||
shopAddress: '6826 Sawmill Rd, Columbus, OH 43235',
|
||||
appointmentDate: nextWeekday
|
||||
},
|
||||
isNonServiceable: true,
|
||||
|
||||
}
|
||||
|
||||
const essentialClients = ClientData.getEssentialClients();
|
||||
|
|
|
|||
|
|
@ -13,26 +13,31 @@ const essentialNonServiceableBigTruckVinData: Partial<ITestData> = {
|
|||
isPolicyFound: false,
|
||||
endorsements: [],
|
||||
isReplace: true,
|
||||
isNonServiceable: true,
|
||||
bailoutFlags: {
|
||||
isHeavyTruckVehicleBailout: true,
|
||||
isBailoutAfterVinLookup: true,
|
||||
},
|
||||
vehiclePartQuestions: [
|
||||
{
|
||||
partQuestionType: PartQuestionType.WindshieldColor,
|
||||
isOnPage: true,
|
||||
optionToSelect: 'Green Tint',
|
||||
secondaryQuestionOptionToSelect: 'one-piece, w/lane departure warning system',
|
||||
secondaryQuestionOptionToSelect: 'One-Piece, With Lane Departure Warning System',
|
||||
},
|
||||
],
|
||||
isSafelite: true,
|
||||
servicePackage: faker.helpers.enumValue(ServicePackage),
|
||||
customerDetails: {
|
||||
firstName: faker.person.firstName(),
|
||||
lastName: faker.person.lastName(),
|
||||
firstName: 'John',
|
||||
lastName: 'Doe',
|
||||
email: "itqatest@safelite.com",
|
||||
phoneNumber: faker.helpers.fromRegExp(/[2-9][0-9][0-9]-[0-9]{3}-[0-9]{4}/),
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
street: '9799 Heartland Court',
|
||||
city: 'Dublin',
|
||||
state: 'Ohio',
|
||||
state: 'OHIO',
|
||||
postalCode: '43016',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
@ -48,7 +53,7 @@ const essentialNonServiceableBigTruckVinData: Partial<ITestData> = {
|
|||
make: 'Freightliner',
|
||||
model: 'Cascadia',
|
||||
style: 'conventional cab',
|
||||
vin: 'JALB4T177G7W00847',
|
||||
vin: '2G5ZJ2TZ4S9105926',
|
||||
vehicleLookupType: VehicleLookupType.Vin,
|
||||
},
|
||||
vehicleDamage: [
|
||||
|
|
@ -59,7 +64,6 @@ const essentialNonServiceableBigTruckVinData: Partial<ITestData> = {
|
|||
shopAddress: '6826 Sawmill Rd, Columbus, OH 43235',
|
||||
appointmentDate: nextWeekday
|
||||
},
|
||||
isNonServiceableVin: true,
|
||||
}
|
||||
|
||||
const essentialClients = ClientData.getEssentialClients();
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const customerAddress: IAddress = {
|
|||
street: faker.location.streetAddress(),
|
||||
city: 'Hamden',
|
||||
state: 'CONNECTICUT',
|
||||
postalCode: '06517',
|
||||
postalCode: '06518',
|
||||
country: 'United States'
|
||||
}
|
||||
const customerDetails: ICustomerDetails = {
|
||||
|
|
@ -33,7 +33,7 @@ const advancedScenario0008Data: Partial<ITestData> = {
|
|||
isDuplicateClaim: false,
|
||||
isPolicyFound: true,
|
||||
isNoComp: false,
|
||||
hasStateLawPopup: false,
|
||||
hasStateLawPopup: true,
|
||||
endorsements: undefined,
|
||||
vehiclePartQuestions: [
|
||||
// {
|
||||
|
|
|
|||
|
|
@ -15,10 +15,10 @@ const customerDetails: ICustomerDetails = {
|
|||
phoneNumber: '614-531-0031',
|
||||
notes: 'Automated Test',
|
||||
address: {
|
||||
street: faker.location.streetAddress(),
|
||||
city: 'San Jose',
|
||||
state: 'CA',
|
||||
postalCode: '97230-6373',
|
||||
street: '15603 NE Tillamook S',
|
||||
city: 'Portland',
|
||||
state: 'OREGON',
|
||||
postalCode: '97230',
|
||||
country: 'United States'
|
||||
}
|
||||
}
|
||||
|
|
@ -32,7 +32,7 @@ const advancedScenario0021Data: Partial<ITestData> = {
|
|||
isPolicyFound: true,
|
||||
isUnverifiedPolicyAfterVehicleLookup: true,
|
||||
isNoComp: false,
|
||||
hasStateLawPopup: true,
|
||||
hasStateLawPopup: false,
|
||||
endorsements: undefined,
|
||||
isUseVehicleOnPolicy: false,
|
||||
isVehicleLookupValidations: true,
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ const advancedScenario0026aData: Partial<ITestData> = {
|
|||
hasStateLawPopup: false,
|
||||
isRecalNotification: true,
|
||||
endorsements: undefined,
|
||||
isRecalVehicle: true,
|
||||
bailoutFlags: {
|
||||
},
|
||||
vehiclePartQuestions: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue