diff --git a/jest.config.js b/jest.config.js index 33b7d1138..8014868f9 100644 --- a/jest.config.js +++ b/jest.config.js @@ -19,6 +19,8 @@ module.exports = { "!src/layouts/vin-lookup/**/*.vue", //Temporary for Quote page testing "!src/common-components/funnel-header/menu-modal/**/*.vue", "!src/layouts/schedule/*.vue", // Temp test exclusion while in development + "!src/layouts/schedule/helpers/schedule-helper.js", // Temp test exclusion while in development + "!src/layouts/review/*.vue", // Temp test exclusion while in development // END ], // ! means exclude from coverage. testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], diff --git a/src/digital-components/button-question/button-question.vue b/src/digital-components/button-question/button-question.vue index 08ec4867d..9c79fcb05 100644 --- a/src/digital-components/button-question/button-question.vue +++ b/src/digital-components/button-question/button-question.vue @@ -121,7 +121,7 @@ export default { isOverflowScrollable: Boolean, isWide: Boolean, isCashOrInsurance: Boolean, - modelValue: [Array, Number, String, Object], + modelValue: [Array, Number, String], value: [Number, String], validationRules: String, suppressError: Boolean, @@ -141,7 +141,7 @@ export default { const fieldOptions = { value: modelValue, - initialValue: modelValue, + initialValue: null, }; const { errorMessage, handleBlur, handleChange, meta, validate, errors, resetField } = @@ -255,10 +255,8 @@ export default { }, }, watch: { - modelValue(newValue) { - this.resetField({ - value: newValue, - }); + modelValue(newValue, oldValue) { + this.resetField(); }, answers() { //once we get the answers to display from parent, see if we need a GA event to log what we showed diff --git a/src/layouts/service-location/appointment-type-question/appointment-type-question.vue b/src/layouts/service-location/appointment-type-question/appointment-type-question.vue index d6711f363..82dd2980a 100644 --- a/src/layouts/service-location/appointment-type-question/appointment-type-question.vue +++ b/src/layouts/service-location/appointment-type-question/appointment-type-question.vue @@ -1,6 +1,6 @@