diff --git a/src/common-components/radio-question/radio-question.vue b/src/common-components/radio-question/radio-question.vue index 5d870f521..aaf06d562 100644 --- a/src/common-components/radio-question/radio-question.vue +++ b/src/common-components/radio-question/radio-question.vue @@ -16,6 +16,7 @@ sizeInRem="1.5" data-test="radio" groupName="radio-list" + textPosition="text-start" /> diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index 60300f78c..db80d3d3f 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -7,7 +7,7 @@ const storeActions = { GET_VEHICLE_STYLES: "getVehicleStyles", GET_EVOX_IMAGE: "getEvoxImage", LOOKUP_VEHICLE_BY_YMMS: "lookupVehicleByYmms", - LOOKUP_VEHICLE_BY_VIN: "lookupVehicleByVin" + LOOKUP_VEHICLE_BY_VIN: "lookupVehicleByVin", }; export { storeActions }; diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js new file mode 100644 index 000000000..6ade6cd1d --- /dev/null +++ b/src/constants/store-mutations.js @@ -0,0 +1,5 @@ +const storeMutations = { + UPDATE_YEAR: "updateYear", +} + +export { storeMutations }; \ No newline at end of file diff --git a/src/helpers/unit-test-helper.js b/src/helpers/unit-test-helper.js index 4210b56bc..5b5deb521 100644 --- a/src/helpers/unit-test-helper.js +++ b/src/helpers/unit-test-helper.js @@ -1,5 +1,5 @@ import { storeActions } from "@/constants/store-actions"; -import store from "@/store"; +import { storeMutations } from "@/constants/store-mutations.js"; export function getMountOptions(mockData) { // Define our mocks to attached to the 'global' object for Vue/Jest. @@ -18,12 +18,16 @@ export function getMountOptions(mockData) { } }); - // Mock store actions from js file + // Mock const files mocks.storeActions = storeActions; + mocks.storeMutations = storeMutations; + + // Mock $store and $router when accessing this.$store/$router + mocks.$store = mockData.store; + mocks.$router = mockData.router; const global = { mocks: mocks, - plugins: [store] }; return { global }; diff --git a/src/layouts/vehicle-year/vehicle-year.vue b/src/layouts/vehicle-year/vehicle-year.vue index e47c1b219..b3cb6c70c 100644 --- a/src/layouts/vehicle-year/vehicle-year.vue +++ b/src/layouts/vehicle-year/vehicle-year.vue @@ -13,13 +13,11 @@ import yearQuestion from "@/layouts/vehicle-year/year-question/year-question"; import pageHeader from "@/ux-components/header/header"; import vehicleBanner from "@/common-components/vehicle-banner/vehicle-banner"; - // Supporting files import { fetchCmsContentForPage } from "@/helpers/cms-content-helper"; import { settleAllPromises } from "@/helpers/layout-helper"; import store from "@/store"; import { storeActions } from "@/constants/store-actions.js"; - export default { name: "vehicle-year", data() { @@ -72,7 +70,6 @@ export default {