Merge pull request #806 from Safelite/bug/brydon/SSR-1441

Reseting bailout when vehicle state cleared and heavy truck bailout
This commit is contained in:
michaela-brydon-safelite 2024-07-30 12:50:18 -04:00 committed by GitHub
commit 9e7c2d6a3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View file

@ -198,8 +198,6 @@ describe('vehicle-lookup.vue', () => {
answersFromCms: vinLookupMethodsMockData.Answers
});
useMainStore().updateVehicleVin = jest.fn();
const lookupByManualVinOptionLabel = wrapper
.find('[data-test-id="vin-lookup-methods-button-question"] label[for="VinLookupMethods-ManualVin"]');
await lookupByManualVinOptionLabel.trigger('mousedown');

View file

@ -1748,9 +1748,6 @@ export const useMainStore = defineStore({
this.order.originalDeductible = coverage.deductible;
this.order.currentDeductible = coverage.deductible;
},
updateVehicleVin(vin) {
this.order.vehicle.vin = vin;
},
resetOrder() {
this.order.referralNumber = null;
@ -1817,6 +1814,10 @@ export const useMainStore = defineStore({
this.order.vehicle.registration.zipCode = null;
this.order.vehicle.registration.firstName = null;
this.order.vehicle.registration.lastName = null;
if (this.isBailout && this.bailoutCode === bailoutCode.HeavyTruckVehicle) {
this.resetBailout();
}
},
resetGlassPartsState() {