From 85420affd93529d2f96eb1d23e5a17559bafee79 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 27 Apr 2022 15:40:44 -0400 Subject: [PATCH] 1) Adjusting evox image height and scrollable area for ymms pages. 2) Adding feature to sync license plate, registration zip, email and service zip to correct textbox fields for lpl. 3) removing zip mismatch alert when new zip added but different alert triggered. --- .../button-question/button-question.vue | 4 +-- .../vehicle-banner/vehicle-banner.vue | 2 +- src/helpers/damage-helper.spec.js | 11 ++++--- .../license-plate-lookup.vue | 32 +++++++++++++------ 4 files changed, 32 insertions(+), 17 deletions(-) diff --git a/src/common-components/button-question/button-question.vue b/src/common-components/button-question/button-question.vue index e29f1fd93..29f7b24ab 100644 --- a/src/common-components/button-question/button-question.vue +++ b/src/common-components/button-question/button-question.vue @@ -158,11 +158,11 @@ export default { diff --git a/src/helpers/damage-helper.spec.js b/src/helpers/damage-helper.spec.js index 1370b8e47..cd54dddcd 100644 --- a/src/helpers/damage-helper.spec.js +++ b/src/helpers/damage-helper.spec.js @@ -1,4 +1,5 @@ -import {getDamageString, compareGlassOptions} from "./damage-helper"; +import {getDamageString, isGlassAvailableForCarId} from "./damage-helper"; +import baseMixin from "@/mixins/base-mixin.js"; jest.mock("@/store", () => ({ getters: {damage: { @@ -16,11 +17,13 @@ jest.mock("@/store", () => ({ // describe("damage-helper.js", () => { // it("Should return false if no mismatches between each array", () => { - // const newOptions = { + // const updatedOptions = { // windshieldOptions: {availableReplacementOptions: ["windshield"]} // } - // const currentOptions = [{location: "Windshield", name: "windshield"}]; - // const misMatch = compareGlassOptions(newOptions, currentOptions); + // baseMixin.methods.dispatchNonBlockingStoreAction = jest.fn().mockImplementation(()=> { + // return updatedOptions; + // }); + // const misMatch = isGlassAvailableForCarId('carId'); // expect(misMatch).toEqual(false); // }); // }); diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 99275fc2c..87605d790 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -28,9 +28,14 @@ class="my-3" :manualHeadline="NoServiceZipHeader" :manualCopy="NoServiceZipBody" - v-if="!isRegistrationZipIServicable" + v-if="!isRegistrationZipIServicable && isVinValid && !isCarIdDifferent" alertClass="alert-danger" /> +
+
+ +
+
-
-
- -
-