Merge branch 'develop' into feature/CSR-92

This commit is contained in:
Max 2022-04-06 10:46:16 -04:00
commit 8963e2ca1b
7 changed files with 9 additions and 9 deletions

View file

@ -34,7 +34,7 @@ module.exports = {
testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"],
coverageThreshold: {
global: {
statements: 88,
statements: 87,
// Got the go ahead from Mark to temporarily lower this. Taking out initialize component made the year,make,model and style coverage drop a bit. Once unit tests for license plate lookup, vin lookup and address lookup are in the coverage should go back up to 90
},
},

View file

@ -43,10 +43,10 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
return 'vehicle-damage'
} else {
if (store.getters.vehicle.vin) {
return 'heritage';
return 'vehicle-damage';
//return "vin-lookup"; (uncomment)
} else {
return 'heritage';
return 'vehicle-damage';
//return "estimate" (uncomment)
}
}

View file

@ -229,7 +229,7 @@ describe("getPageToRouteExistingOrderTo", () => {
//Assert
//expect(result).toBe('vin-lookup');
expect(result).toBe('heritage');
expect(result).toBe('vehicle-damage');
});
test("getPageToRouteExistingOrderTo, should return estimate", async () => {
@ -285,7 +285,7 @@ describe("getPageToRouteExistingOrderTo", () => {
//Assert
//expect(result).toBe('estimate');
expect(result).toBe('heritage');
expect(result).toBe('vehicle-damage');
});
test("getPageToRouteExistingOrderTo, existing order, should return heritage", async () => {

View file

@ -1,6 +1,6 @@
<template>
<transition name="fade" mode="out-in">
<div v-show="isAvailable && this.answersToDisplay.length > 0" class="replace-options-question" :class="this.answersToDisplay.length < 2 ? 'd-none' : ''" aria-live="polite">
<div v-if="isAvailable && this.answersToDisplay.length > 0" class="replace-options-question" :class="this.answersToDisplay.length < 2 ? 'd-none' : ''" aria-live="polite">
<buttonQuestion
isWide
:questionText="questionText"

View file

@ -1,7 +1,7 @@
<template>
<div class="side-door-options">
<transition name="fade" mode="out-in">
<div class="side-doors" v-show="selectedDamageLocations.includes('SideDoor')" aria-live="polite">
<div class="side-doors" v-if="selectedDamageLocations.includes('SideDoor')" aria-live="polite">
<buttonQuestion
:questionText="questionText"
isMultiSelect

View file

@ -1,6 +1,6 @@
<template>
<transition name="fade" mode="out-in">
<div class="windshield-chip-count-question" v-show="isAvailable" aria-live="polite">
<div class="windshield-chip-count-question" v-if="isAvailable" aria-live="polite">
<buttonQuestion
:questionText="questionText"
:answers="answersFromCms"

View file

@ -1,6 +1,6 @@
<template>
<transition name="fade" mode="out-in">
<div class="windshield-damage-type-question" v-show="isAvailable" aria-live="polite">
<div class="windshield-damage-type-question" v-if="isAvailable" aria-live="polite">
<buttonQuestion
:questionText="questionText"
:answers="answersFromCms"