From 3fe2e23959ac1bc1cc41983fe125c9850a3452da Mon Sep 17 00:00:00 2001 From: JennyNou Date: Mon, 30 Mar 2026 20:46:59 -0400 Subject: [PATCH] Update test data for scenarios --- .../tests/0005_EssentialReplaceDynamicAdas.ts | 2 +- .../0007_EssentialRepairHyundaiMobile.ts | 6 +-- .../0009_EssentialPartsServiceErrorBailout.ts | 2 +- .../0010_EssentialVehicleNotFoundBailout.ts | 4 +- .../0011_EssentialDoNotSeeShopBailout.ts | 4 +- .../tests/0012_EssentialUniqueGlass.ts | 9 ++-- .../tests/0013_EssentialReplace.ts | 47 ++++--------------- .../tests/0014_EssentialRepairMobile.ts | 6 +-- ...5_EssentialReplacePartsQuestionsDropoff.ts | 9 ++-- .../tests/0016_EssentialRepairInShop.ts | 4 +- .../tests/0018_EssentialTpaEnabledReplace.ts | 6 +-- .../0019_EssentialTpaEnabledReplaceRecal.ts | 5 +- .../0020_EssentialVehicleLookupBailout.ts | 4 +- .../0021_EssentialPriceServiceErrorBailout.ts | 4 +- .../0022_EssentialServiceableBigTruck.ts | 10 ++-- .../0023_EssentialNonServiceableBigTruck.ts | 10 ++-- ...0024_EssentialNonServiceableBigTruckVin.ts | 18 ++++--- .../tests/advanced/0008a_RepairTpa.ts | 4 +- .../tests/advanced/0021a_VehicleByPlate.ts | 10 ++-- .../0026a_NoDeductibleAdasBailout5.ts | 1 + 20 files changed, 71 insertions(+), 94 deletions(-) diff --git a/playwright-tests/tests/0005_EssentialReplaceDynamicAdas.ts b/playwright-tests/tests/0005_EssentialReplaceDynamicAdas.ts index 909f38b8..8f22d591 100644 --- a/playwright-tests/tests/0005_EssentialReplaceDynamicAdas.ts +++ b/playwright-tests/tests/0005_EssentialReplaceDynamicAdas.ts @@ -25,7 +25,7 @@ const essentialReplaceDynamicAdasData: Partial = { address: { street: faker.location.streetAddress(), city: 'Chicago', - state: 'Illinois', + state: 'ILLINOIS', postalCode: '60645', country: 'United States' } diff --git a/playwright-tests/tests/0007_EssentialRepairHyundaiMobile.ts b/playwright-tests/tests/0007_EssentialRepairHyundaiMobile.ts index 5a1d4c70..c4fff62b 100644 --- a/playwright-tests/tests/0007_EssentialRepairHyundaiMobile.ts +++ b/playwright-tests/tests/0007_EssentialRepairHyundaiMobile.ts @@ -23,9 +23,9 @@ const essentialRepairMobileHyundaiData: Partial = { 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 = { appointmentDetails: { serviceLocation: ServiceLocation.Mobile, serviceAddress: { - street: "2088 Haviland Road, Columbus, OH, USA", + street: "2088 Haviland Road", city:"Vermillion", state: "Ohio", postalCode: "44089", diff --git a/playwright-tests/tests/0009_EssentialPartsServiceErrorBailout.ts b/playwright-tests/tests/0009_EssentialPartsServiceErrorBailout.ts index d4f9a9b5..8da3a486 100644 --- a/playwright-tests/tests/0009_EssentialPartsServiceErrorBailout.ts +++ b/playwright-tests/tests/0009_EssentialPartsServiceErrorBailout.ts @@ -28,7 +28,7 @@ const essentialPartsServiceErrorData: Partial = { address: { street: faker.location.streetAddress(), city: 'Tulare', - state: 'California', + state: 'CALIFORNIA', postalCode: '93247', country: 'United States' } diff --git a/playwright-tests/tests/0010_EssentialVehicleNotFoundBailout.ts b/playwright-tests/tests/0010_EssentialVehicleNotFoundBailout.ts index a2515e6b..a604a635 100644 --- a/playwright-tests/tests/0010_EssentialVehicleNotFoundBailout.ts +++ b/playwright-tests/tests/0010_EssentialVehicleNotFoundBailout.ts @@ -26,9 +26,9 @@ const essentialVehicleNotFoundData: Partial = { 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' } diff --git a/playwright-tests/tests/0011_EssentialDoNotSeeShopBailout.ts b/playwright-tests/tests/0011_EssentialDoNotSeeShopBailout.ts index 9f9e2f13..cb14be46 100644 --- a/playwright-tests/tests/0011_EssentialDoNotSeeShopBailout.ts +++ b/playwright-tests/tests/0011_EssentialDoNotSeeShopBailout.ts @@ -25,9 +25,9 @@ const essentialDoNotSeeShopData: Partial = { 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' } diff --git a/playwright-tests/tests/0012_EssentialUniqueGlass.ts b/playwright-tests/tests/0012_EssentialUniqueGlass.ts index 2cce1cef..3f79e9ab 100644 --- a/playwright-tests/tests/0012_EssentialUniqueGlass.ts +++ b/playwright-tests/tests/0012_EssentialUniqueGlass.ts @@ -22,9 +22,9 @@ const essentialUnqiqueGlassData: Partial = { 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 = { { 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: { diff --git a/playwright-tests/tests/0013_EssentialReplace.ts b/playwright-tests/tests/0013_EssentialReplace.ts index 4e139432..f50889ec 100644 --- a/playwright-tests/tests/0013_EssentialReplace.ts +++ b/playwright-tests/tests/0013_EssentialReplace.ts @@ -13,46 +13,20 @@ const essentialReplaceData: Partial = { 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 = { 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: [ diff --git a/playwright-tests/tests/0014_EssentialRepairMobile.ts b/playwright-tests/tests/0014_EssentialRepairMobile.ts index 085b9fea..820e1951 100644 --- a/playwright-tests/tests/0014_EssentialRepairMobile.ts +++ b/playwright-tests/tests/0014_EssentialRepairMobile.ts @@ -23,9 +23,9 @@ const essentialRepairMobileData: Partial = { 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' } diff --git a/playwright-tests/tests/0015_EssentialReplacePartsQuestionsDropoff.ts b/playwright-tests/tests/0015_EssentialReplacePartsQuestionsDropoff.ts index de719a2f..0c2314f8 100644 --- a/playwright-tests/tests/0015_EssentialReplacePartsQuestionsDropoff.ts +++ b/playwright-tests/tests/0015_EssentialReplacePartsQuestionsDropoff.ts @@ -17,7 +17,7 @@ const essentialReplaceData: Partial = { { partQuestionType: PartQuestionType.WindshieldColor, isOnPage: true, - optionToSelect: 'Green Tint, Blue Shade' + optionToSelect: 'Solar' }, // { // partQuestionType: PartQuestionType.DriverFrontColor, @@ -35,10 +35,9 @@ const essentialReplaceData: Partial = { 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' } diff --git a/playwright-tests/tests/0016_EssentialRepairInShop.ts b/playwright-tests/tests/0016_EssentialRepairInShop.ts index 735f275a..b98e5c69 100644 --- a/playwright-tests/tests/0016_EssentialRepairInShop.ts +++ b/playwright-tests/tests/0016_EssentialRepairInShop.ts @@ -23,9 +23,9 @@ const essentialHappyPathData: Partial = { 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' } diff --git a/playwright-tests/tests/0018_EssentialTpaEnabledReplace.ts b/playwright-tests/tests/0018_EssentialTpaEnabledReplace.ts index 73f29276..d6bed423 100644 --- a/playwright-tests/tests/0018_EssentialTpaEnabledReplace.ts +++ b/playwright-tests/tests/0018_EssentialTpaEnabledReplace.ts @@ -26,13 +26,11 @@ const essentialTpaEnabledData: Partial = { 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' } diff --git a/playwright-tests/tests/0019_EssentialTpaEnabledReplaceRecal.ts b/playwright-tests/tests/0019_EssentialTpaEnabledReplaceRecal.ts index 839dbad1..37fbdddc 100644 --- a/playwright-tests/tests/0019_EssentialTpaEnabledReplaceRecal.ts +++ b/playwright-tests/tests/0019_EssentialTpaEnabledReplaceRecal.ts @@ -30,10 +30,9 @@ const essentialTpaEnabledData: Partial = { // 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' } diff --git a/playwright-tests/tests/0020_EssentialVehicleLookupBailout.ts b/playwright-tests/tests/0020_EssentialVehicleLookupBailout.ts index 77322774..a70e8da0 100644 --- a/playwright-tests/tests/0020_EssentialVehicleLookupBailout.ts +++ b/playwright-tests/tests/0020_EssentialVehicleLookupBailout.ts @@ -26,9 +26,9 @@ const essentialVehicleLookupBailoutData: Partial = { 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' } diff --git a/playwright-tests/tests/0021_EssentialPriceServiceErrorBailout.ts b/playwright-tests/tests/0021_EssentialPriceServiceErrorBailout.ts index e7d5f69c..a0c4e08a 100644 --- a/playwright-tests/tests/0021_EssentialPriceServiceErrorBailout.ts +++ b/playwright-tests/tests/0021_EssentialPriceServiceErrorBailout.ts @@ -26,9 +26,9 @@ const essentialPriceServiceErrorBailoutData: Partial = { 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' } diff --git a/playwright-tests/tests/0022_EssentialServiceableBigTruck.ts b/playwright-tests/tests/0022_EssentialServiceableBigTruck.ts index f50db3cc..f3014dee 100644 --- a/playwright-tests/tests/0022_EssentialServiceableBigTruck.ts +++ b/playwright-tests/tests/0022_EssentialServiceableBigTruck.ts @@ -13,12 +13,14 @@ const essentialServiceableBigTruckData: Partial = { 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 = { 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' } diff --git a/playwright-tests/tests/0023_EssentialNonServiceableBigTruck.ts b/playwright-tests/tests/0023_EssentialNonServiceableBigTruck.ts index 5979bf48..343c5755 100644 --- a/playwright-tests/tests/0023_EssentialNonServiceableBigTruck.ts +++ b/playwright-tests/tests/0023_EssentialNonServiceableBigTruck.ts @@ -11,6 +11,10 @@ const essentialNonServiceableBigTruckData: Partial = { clientTag: 'ALL_ESSENTIAL', isDuplicateClaim: false, isPolicyFound: false, + isNonServiceable: true, + bailoutFlags: { + isHeavyTruckVehicleBailout: true, + }, endorsements: [], isReplace: true, partQuestions: undefined, @@ -23,9 +27,9 @@ const essentialNonServiceableBigTruckData: Partial = { 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 = { shopAddress: '6826 Sawmill Rd, Columbus, OH 43235', appointmentDate: nextWeekday }, - isNonServiceable: true, - } const essentialClients = ClientData.getEssentialClients(); diff --git a/playwright-tests/tests/0024_EssentialNonServiceableBigTruckVin.ts b/playwright-tests/tests/0024_EssentialNonServiceableBigTruckVin.ts index af0c091f..e4bb11bb 100644 --- a/playwright-tests/tests/0024_EssentialNonServiceableBigTruckVin.ts +++ b/playwright-tests/tests/0024_EssentialNonServiceableBigTruckVin.ts @@ -13,26 +13,31 @@ const essentialNonServiceableBigTruckVinData: Partial = { 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 = { make: 'Freightliner', model: 'Cascadia', style: 'conventional cab', - vin: 'JALB4T177G7W00847', + vin: '2G5ZJ2TZ4S9105926', vehicleLookupType: VehicleLookupType.Vin, }, vehicleDamage: [ @@ -59,7 +64,6 @@ const essentialNonServiceableBigTruckVinData: Partial = { shopAddress: '6826 Sawmill Rd, Columbus, OH 43235', appointmentDate: nextWeekday }, - isNonServiceableVin: true, } const essentialClients = ClientData.getEssentialClients(); diff --git a/playwright-tests/tests/advanced/0008a_RepairTpa.ts b/playwright-tests/tests/advanced/0008a_RepairTpa.ts index 2404f831..85b353be 100644 --- a/playwright-tests/tests/advanced/0008a_RepairTpa.ts +++ b/playwright-tests/tests/advanced/0008a_RepairTpa.ts @@ -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 = { isDuplicateClaim: false, isPolicyFound: true, isNoComp: false, - hasStateLawPopup: false, + hasStateLawPopup: true, endorsements: undefined, vehiclePartQuestions: [ // { diff --git a/playwright-tests/tests/advanced/0021a_VehicleByPlate.ts b/playwright-tests/tests/advanced/0021a_VehicleByPlate.ts index f5acaccf..711ab691 100644 --- a/playwright-tests/tests/advanced/0021a_VehicleByPlate.ts +++ b/playwright-tests/tests/advanced/0021a_VehicleByPlate.ts @@ -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 = { isPolicyFound: true, isUnverifiedPolicyAfterVehicleLookup: true, isNoComp: false, - hasStateLawPopup: true, + hasStateLawPopup: false, endorsements: undefined, isUseVehicleOnPolicy: false, isVehicleLookupValidations: true, diff --git a/playwright-tests/tests/advanced/0026a_NoDeductibleAdasBailout5.ts b/playwright-tests/tests/advanced/0026a_NoDeductibleAdasBailout5.ts index c70be807..63902ced 100644 --- a/playwright-tests/tests/advanced/0026a_NoDeductibleAdasBailout5.ts +++ b/playwright-tests/tests/advanced/0026a_NoDeductibleAdasBailout5.ts @@ -34,6 +34,7 @@ const advancedScenario0026aData: Partial = { hasStateLawPopup: false, isRecalNotification: true, endorsements: undefined, + isRecalVehicle: true, bailoutFlags: { }, vehiclePartQuestions: [