Merge branch 'develop' into feature/CSR-92

This commit is contained in:
CarlNation 2022-04-08 08:45:30 -04:00
commit 97e1d0c5a6
13 changed files with 20 additions and 15 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

@ -160,6 +160,7 @@ export default {
.overflow-scroll {
// Height will be determined by overall height of content above list
height: calc(100% - 300px);
overflow-x: hidden !important;
-webkit-overflow-scrolling: touch;
}
}

View file

@ -126,5 +126,8 @@ export default {
justify-content: flex-start;
}
}
& > .container-fluid {
overflow-x: visible; // needed to fix hidden footer on some iphones
}
}
</style>

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

@ -277,7 +277,8 @@ export default {
navigateForward(partsData){
// CSR-98 TEMP
if (store.getters.vehicle.year == 2010) {
const vehicleYearsToShowHeritageFunnel = [ "2001", "2002", "2010" ];
if (vehicleYearsToShowHeritageFunnel.includes(store.getters.vehicle.year)) {
navigateToHeritageFunnel();
return;
}

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"

View file

@ -23,7 +23,7 @@ body {
}
.container,
.container-fluid {
overflow-x: hidden !important;
overflow-x: hidden;
}
.sr-only {

View file

@ -145,7 +145,7 @@ describe("list-card.vue", () => {
// Assert
const label = wrapper.find("label");
expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-r", "ps-3", "pe-4"]);
expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-2", "ps-4", "pe-4"]);
});
it("Should return flex row classes if isWide is true and checkboxTop if buttonLabelSubCopy is true", async () => {
@ -167,7 +167,7 @@ describe("list-card.vue", () => {
// Assert
const label = wrapper.find("label");
expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-r", "ps-3", "pe-4", "checkboxTop"]);
expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-2", "ps-4", "pe-4", "checkboxTop"]);
});
it("Should return flex column classes if isWide is false", async () => {

View file

@ -107,7 +107,7 @@ export default {
computed: {
getLabelClasses() {
if (this.isWide) {
let classes = "flex-row py-r ps-3 pe-4";
let classes = "flex-row py-2 ps-4 pe-4";
if (this.buttonLabelSubCopy) {
classes += " checkboxTop";
}
@ -173,7 +173,7 @@ export default {
// svg's should be constructed on the same canvas size/viewbox to ensure they occupy the same space in the DOM. This will allow easy/proper alignment of elements. See exisitng svg's for examples.
height: auto;
width: 6.5rem;
margin-bottom: 3rem;
margin-bottom: 2.2rem;
max-width: 100%;
}