diff --git a/src/common-components/text-block/text-block.vue b/src/common-components/text-block/text-block.vue index 8ca33b0a3..7c7557b25 100644 --- a/src/common-components/text-block/text-block.vue +++ b/src/common-components/text-block/text-block.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/src/layouts/estimate/estimate.spec.js b/src/layouts/estimate/estimate.spec.js index a24bc22b7..1843670ec 100644 --- a/src/layouts/estimate/estimate.spec.js +++ b/src/layouts/estimate/estimate.spec.js @@ -146,6 +146,20 @@ describe("estimate.vue", () => { }); + test("Changing zip should reset alert", async () => { + //Arrange + const { wrapper } = setupMocks({}); + + //Act + wrapper.vm.displayNonServiceableZipAlert = "true"; + wrapper.vm.serviceZipCode = "43015"; + + await wrapper.vm.$nextTick(); + + //Assert + expect(wrapper.vm.displayNonServiceableZipAlert).toEqual(false); + }); + }); function setupMocks({ diff --git a/src/layouts/estimate/estimate.vue b/src/layouts/estimate/estimate.vue index aae192291..e003348bd 100644 --- a/src/layouts/estimate/estimate.vue +++ b/src/layouts/estimate/estimate.vue @@ -6,26 +6,86 @@ v-slot="{ meta }" >
+
- - +
+ + +
+
+ +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+ + +
diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 1b163ef30..90a447258 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -36,7 +36,7 @@ />
-
+
+
+
+ +
+
-
+
+
+
+ +
+
{ // Assert expect(global.document.querySelector).toBeCalledWith("[data-focus-target='fieldOne']"); }); + + test("getZipCodeData calls dispatch", () => { + const mixIn = getMixInInstance({}); + mixIn.methods.dispatchStoreAction = jest.fn(); + mixIn.methods.dispatchStoreAction.mockReturnValue({ isValid:true, isServiceable:true, state:"OH" }); + const type = ""; + const payload = { zip: 43015 }; + + const mockData = { + actionList: [{ + actionName: storeActions.VALIDATE_ZIP + }], + } + + mixIn.methods.getZipCodeData(type, payload); + + expect(mixIn.methods.dispatchStoreAction).toBeCalled(); + }); + }); function getMixInInstance({ isDispatchSuccess = true }) {