Update tests to use real addresses instead of faker

This commit is contained in:
JennyNou 2026-04-03 12:13:35 -04:00
parent 484077fa2f
commit a1856582f4
4 changed files with 13 additions and 17 deletions

View file

@ -23,10 +23,10 @@ const essentialReplaceDynamicAdasData: 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]/), 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', notes: 'Automated Test',
address: { address: {
street: faker.location.streetAddress(), street: '9039 4th Avenue South',
city: 'Chicago', city: 'Seattle',
state: 'ILLINOIS', state: 'WASHINGTON',
postalCode: '60645', postalCode: '98108',
country: 'United States' country: 'United States'
} }
}, },
@ -50,10 +50,10 @@ const essentialReplaceDynamicAdasData: Partial<ITestData> = {
appointmentDetails: { appointmentDetails: {
serviceLocation: ServiceLocation.Mobile, serviceLocation: ServiceLocation.Mobile,
serviceAddress: { serviceAddress: {
street: "2088 Haviland Road, Columbus, OH, USA", street: "9039 4th Avenue South",
city:"Vermillion", city:"Seattle",
state: "Ohio", state: "WASHINGTON",
postalCode: "44089", postalCode: "98108",
country: "undefined" country: "undefined"
}, },
appointmentDate: nextWeekday appointmentDate: nextWeekday

View file

@ -55,7 +55,7 @@ const advancedScenario0003Data: Partial<ITestData> = {
policyNumber: policyNumber, policyNumber: policyNumber,
policyDeductible: 50, policyDeductible: 50,
damageDate: '2026-01-02', damageDate: '2026-01-02',
damageCause: faker.helpers.enumValue(DamageType) damageCause: DamageType.Rock
}, },
policySoap: policySoap, policySoap: policySoap,
vehicleDetails: { vehicleDetails: {

View file

@ -15,10 +15,10 @@ const customerDetails: ICustomerDetails = {
phoneNumber: '614-531-0031', phoneNumber: '614-531-0031',
notes: 'Automated Test', notes: 'Automated Test',
address: { address: {
street: faker.location.streetAddress(), street: '950 Rincon Circle',
city: 'San Jose', city: 'San Jose',
state: 'CA', state: 'CA',
postalCode: '97230-6373', postalCode: '97230',
country: 'United States' country: 'United States'
} }
} }
@ -36,9 +36,7 @@ const advancedScenario0022Data: Partial<ITestData> = {
endorsements: undefined, endorsements: undefined,
isUseVehicleOnPolicy: false, isUseVehicleOnPolicy: false,
isVehicleLookupValidations: true, isVehicleLookupValidations: true,
vehiclePartQuestions: [ vehiclePartQuestions: [],
],
isSafelite: false, isSafelite: false,
servicePackage: faker.helpers.enumValue(ServicePackage), servicePackage: faker.helpers.enumValue(ServicePackage),
customerDetails: customerDetails, customerDetails: customerDetails,

View file

@ -15,7 +15,7 @@ const customerDetails: ICustomerDetails = {
phoneNumber: '614-531-0031', phoneNumber: '614-531-0031',
notes: 'Automated Test', notes: 'Automated Test',
address: { address: {
street: '4530 Kenny Road', street: '2682 Lane Road',
city: 'Columbus', city: 'Columbus',
state: 'OH', state: 'OH',
postalCode: '43220', postalCode: '43220',
@ -35,8 +35,6 @@ const advancedScenario0024Data: Partial<ITestData> = {
endorsements: undefined, endorsements: undefined,
isUseVehicleOnPolicy: false, isUseVehicleOnPolicy: false,
isUseVehicleFromAddressLookup: true, isUseVehicleFromAddressLookup: true,
isVehicleLookupValidations: false,
isVehicleSelectBailout: false,
isAddressLookupValidations: true, isAddressLookupValidations: true,
isMoldingQuestion: false, isMoldingQuestion: false,
isSafelite: true, isSafelite: true,