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

View file

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

View file

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

View file

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