CSR-747 Cleanup

This commit is contained in:
Katie 2022-12-08 16:05:29 -05:00
parent e25605d4b2
commit d018df6a3f
6 changed files with 8 additions and 15 deletions

View file

@ -122,10 +122,6 @@ const endpoints = {
url: "/experiments/api/v1/experiments/run",
method: "POST",
},
GetPriceForLineItems: {
url: "/price/api/v1/price/order-items",
method: "GET",
},
};
export { endpoints };

View file

@ -40,7 +40,7 @@ const storeActions = {
RUN_EXPERIMENTS_FOR_TRIGGER: "runExperimentsForTrigger",
CLEAR_VIN: "clearVin",
RESET_SAVE_SESSION_PROMISE: "resetSaveSessionPromise",
// DEPENDENCY MUTATIONS
RESET_DAMAGE_STATE_AND_DEPENDENCIES: "resetDamageAndDependencies",
RESET_REGISTRATION_STATE_AND_DEPENDENCIES: "resetRegistrationAndDependencies",
@ -65,7 +65,6 @@ const storeActions = {
"resetMoldingAndCapabilityQuestionAnswersIfNeeded",
SAVE_MOLDING_QUESTION_ANSWERS: "saveMoldingQuestionAnswers",
SAVE_CAPABILITY_QUESTION_ANSWERS: "saveCapabilityQuestionAnswers",
SAVE_IS_INSURANCE: "saveIsInsurance",
SAVE_QUOTE_PAGE_SELECTIONS: "saveQuotePageSelections",
SAVE_PAYMENT_TYPE: "savePaymentType",
SAVE_SUPPORTING_ITEMS: "saveSupportingItems",

View file

@ -221,8 +221,8 @@ describe("partQuestions.vue...", () => {
test("Should clear out answerData", async () => {
// Arrange
store.getters.payment = {
insuranceCoverage: null
}
insuranceCoverage: null,
};
const { wrapper } = setupMocks({});
await wrapper.setData({

View file

@ -117,8 +117,6 @@ export default {
vm.supportingItems = resultMap.supportingItems;
vm.availableLineItems = pricingResults;
vm.isInsuranceSelected = vm.getDefaultIsInsuranceSelectedValue();
vm.dispatchStoreAction(storeActions.SAVE_IS_INSURANCE, vm.isInsuranceSelected);
});
},
data() {

View file

@ -329,8 +329,11 @@ export default {
navigateForward() {
const payment = this.$store.getters.payment;
console.log(payment)
const vehicleChangedDuringPolicyLookupInHeritage = payment.isInsurance && payment.insuranceCoverage.coverageStatus && payment.insuranceCoverage.coverageStatus !== "";
console.log(payment);
const vehicleChangedDuringPolicyLookupInHeritage =
payment.isInsurance &&
payment.insuranceCoverage.coverageStatus &&
payment.insuranceCoverage.coverageStatus !== "";
if (vehicleChangedDuringPolicyLookupInHeritage) {
if (store.getters.damage.isRepair) {
this.$router.navigateWithSaving(

View file

@ -1419,9 +1419,6 @@ export const actions = {
clearVin(context) {
context.commit(storeMutations.UPDATE_VEHICLE_VIN, null);
},
saveIsInsurance(context, isInsurance) {
context.commit(storeMutations.UPDATE_IS_INSURANCE, isInsurance);
},
isVinOptionalVehicle(context) {
switch (context.state.order.vehicle.make.toLowerCase()) {
case "mercedes benz":