From bda71612488a971e8f83017644e971bdf7b5d185 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Thu, 14 Jul 2022 09:58:42 -0400 Subject: [PATCH] Fixed broken unit test --- .../address-lookup/address-lookup.spec.js | 37 +------------------ 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/src/layouts/address-lookup/address-lookup.spec.js b/src/layouts/address-lookup/address-lookup.spec.js index 77f154e45..73327eb1a 100644 --- a/src/layouts/address-lookup/address-lookup.spec.js +++ b/src/layouts/address-lookup/address-lookup.spec.js @@ -332,7 +332,7 @@ describe("address-lookup.vue", () => { }); - test("if a different vehicle is found than the one entered and the selected glass is not available for that vehicle, navigate back to vehicle-damage page", async () => { + test.only("if a different vehicle is found than the one entered and the selected glass is not available for that vehicle, navigate back to vehicle-damage page", async () => { // Arrange const mockRegistrationAddress = { streetAddress: "1234 Main St", @@ -351,10 +351,9 @@ describe("address-lookup.vue", () => { addressQuestions: mockRegistrationAddress }, isCarIdDifferent: true, - isGlassAvailableForCarId: false, + isSelectedGlassAvailableForVehicle: false, }) - let carsFound = [{ vin: "TEST_VIN2", vehicle: { @@ -499,38 +498,6 @@ describe("address-lookup.vue", () => { expect(wrapper.findComponent({ ref: "alertNonServiceableZip" }).isVisible()).toBe(true); }); - // test.only("if registration address is provided user clicks continue => show service zip field on continue click", async () => { - // // Arrange - // const mockRegistrationAddress = { - // streetAddress: "1234 Main St", - // city: "Columbus", - // state: "OH", - // zipCode: "43215" - // } - - // const { wrapper } = setupMocks({ - // isZipServiceable: false - // } - // ); - - // expect(wrapper.vm.showServiceZipField).toBeFalsy(); - // expect(wrapper.findComponent({ ref: "serviceZip" }).exists()).toBe(false); - // store.commit(storeMutations.UPDATE_CAR_ID, "CARID"); - - // await wrapper.setData({ - // customerQuestions: { - // addressQuestions: mockRegistrationAddress - // } - // }) - - // // Act - // await wrapper.vm.forwardButtonAction(); - - // // Assert - // expect(wrapper.vm.showServiceZipField).toBe(true); - // expect(wrapper.findComponent({ ref: "serviceZip" }).isVisible()).toBe(true); - // }); - test("if registration address, service zip are provided, and user clicks continue => don't update service address", async () => { // Arrange const mockRegistrationAddress = {