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