updates for mock page

This commit is contained in:
Max 2021-12-20 16:44:34 -05:00
parent 77e8fd1d34
commit 44658ec229
4 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,8 @@
<legend class="sr-only">{{groupName}}</legend> <legend class="sr-only">{{groupName}}</legend>
<listButton v-for="answer in answers" :key="answer" <listButton v-for="answer in answers" :key="answer"
:buttonID="answer" :buttonID="answer"
@click="chooseAnswer(answer)" @mouseup="chooseAnswer(answer)"
@keyup.space="chooseAnswer(answer)"
loaderColor="blue" loaderColor="blue"
loaderPosition="right" loaderPosition="right"
sizeInRem="1.5" sizeInRem="1.5"

View file

@ -6,6 +6,7 @@
v-if="hasBackButton" v-if="hasBackButton"
:backButtonAccessibleText="backButtonAccessibleText" :backButtonAccessibleText="backButtonAccessibleText"
:backButtonAction="backButtonAction" :backButtonAction="backButtonAction"
:backButtonUrl="backButtonUrl"
/> />
</div> </div>
</div> </div>

View file

@ -44,6 +44,7 @@ describe("vehicle-make.vue", () => {
//Assert //Assert
const header = await wrapper.find(".Header"); const header = await wrapper.find(".Header");
apiPromise.finally(() => { apiPromise.finally(() => {
console.log(header)
expect(header.attributes("text")).toEqual("Select a make to get started"); expect(header.attributes("text")).toEqual("Select a make to get started");
done(); done();
}); });

View file

@ -30,7 +30,7 @@ export default {
}, },
methods: { methods: {
loadInitialData() { loadInitialData() {
return store.dispatch(storeActions.GET_VEHICLE_MODELS, {year: store.getters.vehicle.year, make: store.getters.vehicle.make}); return store.dispatch(storeActions.GET_VEHICLE_MODELS, {year: store.getters.vehicle.year, make: encodeURIComponent(store.getters.vehicle.make)});
}, },
initializeComponent(cmsContent, initialData) { initializeComponent(cmsContent, initialData) {
this.questionText = cmsContent.QuestionText; this.questionText = cmsContent.QuestionText;