Merge pull request #594 from Safelite/defect/CSR-725
CSR-725 Change variable name, change type from array to string
This commit is contained in:
commit
e3ca8b25ba
2 changed files with 8 additions and 8 deletions
|
|
@ -81,7 +81,7 @@ describe("estimate.vue", () => {
|
|||
//Arrange
|
||||
const { wrapper } = setupMocks({});
|
||||
await wrapper.setData({
|
||||
selectedValues: [vinLookupMethodSelections.HOMEADDRESS]
|
||||
selectedVinLookupMethod: vinLookupMethodSelections.HOMEADDRESS
|
||||
})
|
||||
|
||||
//Act
|
||||
|
|
@ -97,7 +97,7 @@ describe("estimate.vue", () => {
|
|||
//Arrange
|
||||
const { wrapper } = setupMocks({});
|
||||
await wrapper.setData({
|
||||
selectedValues: [vinLookupMethodSelections.MANUALVIN]
|
||||
selectedVinLookupMethod: vinLookupMethodSelections.MANUALVIN
|
||||
})
|
||||
|
||||
//Act
|
||||
|
|
@ -132,7 +132,7 @@ describe("estimate.vue", () => {
|
|||
//Arrange
|
||||
const { wrapper } = setupMocks({});
|
||||
await wrapper.setData({
|
||||
selectedValues: [vinLookupMethodSelections.LICENSEPLATE]
|
||||
selectedVinLookupMethod: vinLookupMethodSelections.LICENSEPLATE
|
||||
})
|
||||
|
||||
//Act
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
:answers="answersFromCms"
|
||||
groupName="vinLookupMethodOption"
|
||||
buttonType="listButton"
|
||||
v-model="selectedValues"
|
||||
v-model="selectedVinLookupMethod"
|
||||
isRequired
|
||||
validationRules="option-required"
|
||||
/>
|
||||
|
|
@ -60,7 +60,7 @@ export default {
|
|||
name: "estimate",
|
||||
data() {
|
||||
return {
|
||||
selectedValues: [],
|
||||
selectedVinLookupMethod: "",
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -94,20 +94,20 @@ export default {
|
|||
);
|
||||
},
|
||||
async forwardButtonAction() {
|
||||
if (this.selectedValues[0] === vinLookupMethodSelections.MANUALVIN) {
|
||||
if (this.selectedVinLookupMethod === vinLookupMethodSelections.MANUALVIN) {
|
||||
await this.dispatchStoreAction(storeActions.CLEAR_VIN);
|
||||
return this.$router.navigate(
|
||||
this.navigationScenarios.SELECTED_MANUAL_VIN,
|
||||
this.$route
|
||||
);
|
||||
}
|
||||
if (this.selectedValues[0] === vinLookupMethodSelections.LICENSEPLATE) {
|
||||
if (this.selectedVinLookupMethod === vinLookupMethodSelections.LICENSEPLATE) {
|
||||
return this.$router.navigate(
|
||||
this.navigationScenarios.SELECTED_LICENSE_PLATE,
|
||||
this.$route
|
||||
);
|
||||
}
|
||||
if (this.selectedValues[0] === vinLookupMethodSelections.HOMEADDRESS) {
|
||||
if (this.selectedVinLookupMethod === vinLookupMethodSelections.HOMEADDRESS) {
|
||||
return this.$router.navigate(
|
||||
this.navigationScenarios.SELECTED_HOME_ADDRESS,
|
||||
this.$route
|
||||
|
|
|
|||
Loading…
Reference in a new issue