From f03b46350ff87f618ffc988db71238b6bc7c8848 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Mon, 22 May 2023 16:01:18 -0400 Subject: [PATCH 1/3] missing mounted() to assign inputId and put focus on zip field --- src/digital-components/textbox-question/textbox-question.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index f4b2554a..774d0025 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -183,6 +183,9 @@ export default { }, }, }, + mounted() { + this.$emit("textboxQuestionEvent.inputIdAssigned", this.inputId); + }, watch: { async value(newValue) { const result = await validate(newValue, this.validationRules); // do a test validation check, without triggering full validation From 499f4a0537ecf833f27d0aed52d3539431d14cbb Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Mon, 22 May 2023 16:02:49 -0400 Subject: [PATCH 2/3] (SSR-484) remove resetting appt type when service zip is changed --- src/layouts/service-location/service-location.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index 5b42579c..3b93b6c9 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -146,10 +146,6 @@ export default { }; }, set: function (newValue) { - if (newValue.zipCode !== this.zipCode) { - this.selectedAppointmentType = null; - } - this.zipCode = newValue.zipCode; this.state = newValue.state; From b9a895a43beacbf844e117ef5523ba4b47cba717 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Mon, 22 May 2023 16:09:19 -0400 Subject: [PATCH 3/3] remove unneeded unit test --- .../service-location/service-location.spec.js | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/layouts/service-location/service-location.spec.js b/src/layouts/service-location/service-location.spec.js index 6d1ba5e2..1d424130 100644 --- a/src/layouts/service-location/service-location.spec.js +++ b/src/layouts/service-location/service-location.spec.js @@ -113,28 +113,6 @@ describe("updating service zip", () => { expect(wrapper.vm.serviceZipCodeQuestion).toStrictEqual(newServiceZipCodeQuestion); }); - test("resets appointment type selection when service zip code is updated by service zip modal", () => { - // Arrange - const { wrapper } = setupMocks({}); - - const serviceZipCodeComponent = wrapper.findComponent({ - ref: "serviceZipCodeQuestion", - }); - - const newServiceZipCodeQuestion = { - zipCode: "61606", - state: "IL", - }; - - wrapper.vm.selectedAppointmentType = "Inshop"; - - // Act - serviceZipCodeComponent.vm.$emit("update:modelValue", newServiceZipCodeQuestion); - - // Assert - expect(wrapper.vm.selectedAppointmentType).toStrictEqual(null); - }); - test("displays military zip message when zip is updated", () => { // Arrange const { wrapper } = setupMocks({});