WIP change name to insurance-company.

This commit is contained in:
Bryan Mauger 2024-03-07 11:47:17 -05:00
parent ef6310880c
commit 245284d8a3
5 changed files with 10 additions and 10 deletions

View file

@ -25,7 +25,7 @@ module.exports = {
"!src/layouts/payment/*.vue", // Temp test exclusion while in development "!src/layouts/payment/*.vue", // Temp test exclusion while in development
"!src/layouts/payment-pia-return/*.vue", // Temp test exclusion while in development "!src/layouts/payment-pia-return/*.vue", // Temp test exclusion while in development
"!src/layouts/insurance/*.vue", // Temp test exclusion while in development "!src/layouts/insurance/*.vue", // Temp test exclusion while in development
"!src/layouts/insurance-lookup/*.vue", // Temp test exclusion while in development "!src/layouts/insurance-company/*.vue", // Temp test exclusion while in development
// END // END
], // ! means exclude from coverage. ], // ! means exclude from coverage.
testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"],

View file

@ -72,7 +72,7 @@ defineRule("vin-required", required(errorMessages.VIN_REQUIRED));
defineRule("vin-format", regex(/^[a-hA-Hj-nJ-NpPr-zR-Z0-9]{17}$/, errorMessages.VIN_FORMAT)); defineRule("vin-format", regex(/^[a-hA-Hj-nJ-NpPr-zR-Z0-9]{17}$/, errorMessages.VIN_FORMAT));
export default { export default {
name: "insurance-lookup", name: "insurance-company",
mixins: [vinPagesMixin], mixins: [vinPagesMixin],
async beforeRouteEnter(to, from, next) { async beforeRouteEnter(to, from, next) {
// Call APIs // Call APIs
@ -80,7 +80,7 @@ export default {
const insuranceCompanyListPromise = baseMixin.methods.dispatchStoreActionWithLogging( const insuranceCompanyListPromise = baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.GET_INSURANCE_COMPANY_LIST, storeActions.GET_INSURANCE_COMPANY_LIST,
{}, {},
"insurance-lookup" "insurance-company"
); );
// Settle promises and get results // Settle promises and get results
@ -105,14 +105,14 @@ export default {
data() { data() {
return { return {
insuranceCompanyList: [], insuranceCompanyList: [],
} };
}, },
computed: { computed: {
insuranceCompanyListTags() { insuranceCompanyListTags() {
return this.insuranceCompanyList.map(item => { return this.insuranceCompanyList.map((item) => {
return item.accountName; return item.accountName;
}) });
} },
}, },
methods: { methods: {
arePagePrerequisitesValid() { arePagePrerequisitesValid() {

View file

@ -11,7 +11,7 @@ const fmgPageValues = {
ESTIMATE: "estimate", ESTIMATE: "estimate",
ADDRESS_VEHICLES: "address-vehicles", ADDRESS_VEHICLES: "address-vehicles",
QUOTE: "quote", QUOTE: "quote",
INSURANCE_LOOKUP: "insurance-lookup", INSURANCE_COMPANY: "insurance-company",
INSURANCE_DETAILS: "insurance-details", INSURANCE_DETAILS: "insurance-details",
SERVICE_LOCATION: "service-location", SERVICE_LOCATION: "service-location",
HERITAGE: "heritage", HERITAGE: "heritage",

View file

@ -391,12 +391,12 @@ const routingTable = function (store) {
}, },
{ {
scenario: navigationScenarios.CLICKED_FORWARD_WITH_INSURANCE, scenario: navigationScenarios.CLICKED_FORWARD_WITH_INSURANCE,
destinationFmgPageValue: fmgPageValues.INSURANCE_LOOKUP, destinationFmgPageValue: fmgPageValues.INSURANCE_COMPANY,
}, },
], ],
}, },
{ {
fmgPageValue: fmgPageValues.INSURANCE_LOOKUP, fmgPageValue: fmgPageValues.INSURANCE_COMPANY,
maps: [ maps: [
{ {
scenario: navigationScenarios.CLICKED_BACK, scenario: navigationScenarios.CLICKED_BACK,