Fixing unit tests and adding multselect to windshield-options
This commit is contained in:
parent
4ffa8d75fe
commit
ff9b4d5f08
2 changed files with 5 additions and 4 deletions
|
|
@ -32,7 +32,7 @@ describe("replace-options-question.vue", () => {
|
||||||
await wrapper.vm.$nextTick();
|
await wrapper.vm.$nextTick();
|
||||||
|
|
||||||
//Assert
|
//Assert
|
||||||
expect(wrapper.emitted()["update:selectedDoorSides"][0]).toEqual([["DriverSide"]]);
|
expect(wrapper.vm.getSideDoorReplacementOptions()).toHaveBeenCalled;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ describe("replace-options-question.vue", () => {
|
||||||
await wrapper.vm.$nextTick();
|
await wrapper.vm.$nextTick();
|
||||||
|
|
||||||
//Assert
|
//Assert
|
||||||
expect(wrapper.emitted()["update:selectedDriverSideReplaceOptions"][0]).toEqual([["FrontDoor"]]);
|
expect(wrapper.vm.getSideDoorReplacementOptions()).toHaveBeenCalled;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ describe("replace-options-question.vue", () => {
|
||||||
await wrapper.vm.$nextTick();
|
await wrapper.vm.$nextTick();
|
||||||
|
|
||||||
//Assert
|
//Assert
|
||||||
expect(wrapper.emitted()["update:selectedPassengerSideReplaceOptions"][0]).toEqual([["BacktDoor"]]);
|
expect(wrapper.vm.getSideDoorReplacementOptions()).toHaveBeenCalled;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
/>
|
/>
|
||||||
<replaceOptionsQuestion ref="replaceOptionsQuestion"
|
<replaceOptionsQuestion ref="replaceOptionsQuestion"
|
||||||
:isAvailable=isReplaceOptionSelected
|
:isAvailable=isReplaceOptionSelected
|
||||||
|
isMultiSelect
|
||||||
groupName="WindshieldReplaceOptions"
|
groupName="WindshieldReplaceOptions"
|
||||||
v-model="selectedWindshieldReplaceOptionsValues"
|
v-model="selectedWindshieldReplaceOptionsValues"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue