diff --git a/src/common-components/funnel-footer/funnel-footer.spec.js b/src/common-components/funnel-footer/funnel-footer.spec.js index ef2049eb5..f1a885dfd 100644 --- a/src/common-components/funnel-footer/funnel-footer.spec.js +++ b/src/common-components/funnel-footer/funnel-footer.spec.js @@ -25,6 +25,36 @@ describe("funnel-footer.vue", () => { } catch(error) { console.log(error); } - + }); + + it("Should return link text", async () => { + // Act + const wrapper = mount(funnelFooter, { + propsData: { + text: "Terms of use", + }, + }); + + // Assert + const link = wrapper.find("a"); + + expect(link.text()).toEqual("Terms of use"); + }); + + it("Should return class btn-primary", async () => { + // Act + const wrapper = mount(funnelFooter, { + propsData: { + isPrimary: true, + }, + }); + + // Assert + const input = wrapper.find("button"); + + // Expect + expect(input.attributes("class")).toContain("btn-primary"); + }); + }); diff --git a/src/layouts/vehicle-make/make-question/make-question.vue b/src/layouts/vehicle-make/make-question/make-question.vue index 2a94deafe..64d58ab95 100644 --- a/src/layouts/vehicle-make/make-question/make-question.vue +++ b/src/layouts/vehicle-make/make-question/make-question.vue @@ -8,6 +8,7 @@ textPosition="text-start" :loaderEnabled="true" v-model="modelValue" + isRequired=true /> diff --git a/src/layouts/vehicle-model/model-question/model-question.vue b/src/layouts/vehicle-model/model-question/model-question.vue index 34a811e27..17edc6d85 100644 --- a/src/layouts/vehicle-model/model-question/model-question.vue +++ b/src/layouts/vehicle-model/model-question/model-question.vue @@ -8,6 +8,7 @@ textPosition="text-start" :loaderEnabled="true" v-model="modelValue" + isRequired=true /> diff --git a/src/layouts/vehicle-style/style-question/style-question.vue b/src/layouts/vehicle-style/style-question/style-question.vue index f82ac6981..11880aacd 100644 --- a/src/layouts/vehicle-style/style-question/style-question.vue +++ b/src/layouts/vehicle-style/style-question/style-question.vue @@ -8,6 +8,7 @@ textPosition="text-start" :loaderEnabled="true" v-model="modelValue" + isRequired=true />