@@ -221,3 +221,9 @@ export default {
},
};
+
\ No newline at end of file
diff --git a/src/layouts/vin-lookup/vin-lookup-alerts/two-identical-ymm-vehicle-alert/two-identical-ymm-vehicle-alert.vue b/src/layouts/vin-lookup/vin-lookup-alerts/two-identical-ymm-vehicle-alert/two-identical-ymm-vehicle-alert.vue
new file mode 100644
index 00000000..79f4a31a
--- /dev/null
+++ b/src/layouts/vin-lookup/vin-lookup-alerts/two-identical-ymm-vehicle-alert/two-identical-ymm-vehicle-alert.vue
@@ -0,0 +1,53 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/layouts/vin-lookup/vin-lookup-alerts/vehicle-not-matched-alert/vehicle-not-matched-alert.vue b/src/layouts/vin-lookup/vin-lookup-alerts/vehicle-not-matched-alert/vehicle-not-matched-alert.vue
index 1f000e5f..171f76cb 100644
--- a/src/layouts/vin-lookup/vin-lookup-alerts/vehicle-not-matched-alert/vehicle-not-matched-alert.vue
+++ b/src/layouts/vin-lookup/vin-lookup-alerts/vehicle-not-matched-alert/vehicle-not-matched-alert.vue
@@ -28,14 +28,12 @@ export default {
body() {
let year = '';
let make = '';
- let model = '';
- let style = '';
+ let model = '';
if (this.vehicleFromLookup) {
year = this.vehicleFromLookup.year;
make = this.vehicleFromLookup.make;
- model = this.vehicleFromLookup.model;
- style = this.vehicleFromLookup.style;
+ model = this.vehicleFromLookup.model;
}
return (
@@ -43,8 +41,7 @@ export default {
.replaceAll('{custom:damage}', getDamageString())
.replaceAll('{custom:vinlookupYear}', year)
.replaceAll('{custom:vinlookupMake}', make)
- .replaceAll('{custom:vinlookupModel}', model)
- .replaceAll('{custom:vinlookupStyle}', style)
+ .replaceAll('{custom:vinlookupModel}', model)
);
},
},
diff --git a/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.spec.js b/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.spec.js
index e62df817..37b339af 100644
--- a/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.spec.js
+++ b/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.spec.js
@@ -54,4 +54,18 @@ describe('vin-lookup-alerts.vue', () => {
expect(vehicleNotFoundAlert).toEqual(null);
expect(vehicleNotMatchedAlert).toBeVisible();
});
+ test('TwoIdenticalYMMVehicleAlert is displayed on the screen', () => {
+ getDamageString.mockImplementation(() => 'Mock Damage String');
+ mountOptions.props = {
+ activeAlertType: vehicleLookupAlertTypes.TWO_IDENTICAL_YMM_MATCHED,
+ };
+ mountOptions.global.provide = {
+ vehicleFromLookup: {},
+ };
+
+ const { queryByRole } = render(VinLookupAlertsComponent, mountOptions);
+ const twoIdenticalYMMVehicleAlert = queryByRole('alert', { name: 'two-identical-ymm-vehicle-alert' });
+
+ expect(twoIdenticalYMMVehicleAlert).toBeVisible();
+ });
});
diff --git a/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue b/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue
index 1bf94a09..ebbf17af 100644
--- a/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue
+++ b/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue
@@ -6,6 +6,9 @@
+
@@ -16,9 +19,9 @@
+
\ No newline at end of file
diff --git a/src/layouts/welcome-page/welcome-page.vue b/src/layouts/welcome-page/welcome-page.vue
index a2a61ae9..14ff12e7 100644
--- a/src/layouts/welcome-page/welcome-page.vue
+++ b/src/layouts/welcome-page/welcome-page.vue
@@ -335,7 +335,7 @@