Fixed policy test

This commit is contained in:
brydon1 2023-09-18 16:47:32 -04:00
parent d8f52ed821
commit cdf69070fd

View file

@ -9,7 +9,6 @@ import baseMixin from '@/mixins/base-mixin';
import { getRandomString, getRandomInt } from '@/helpers/data-generation'; import { getRandomString, getRandomInt } from '@/helpers/data-generation';
import endorsementOptions from '@/constants/endorsement-options'; import endorsementOptions from '@/constants/endorsement-options';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import issPageValues from '@/router/router-constants/issPage-values';
import vehicleSelectionOptions from '@/constants/vehicle-selection-options'; import vehicleSelectionOptions from '@/constants/vehicle-selection-options';
// Mock fetchCmsContentForPage // Mock fetchCmsContentForPage
@ -412,9 +411,9 @@ describe('policy-vehicles.vue', () => {
test('first vehicle is auto-selected if only one vehicle on policy', async () => { test('first vehicle is auto-selected if only one vehicle on policy', async () => {
// Arrange // Arrange
const vin = getRandomString(17, 17); const vin = getRandomString(17, 17);
useMainStore().applicationUser = { useMainStore().order = {
pageData: { policy: {
[issPageValues.POLICY_VEHICLES]: [{ vin }] vehicles: [{ vin }]
} }
}; };