Fixed policy test
This commit is contained in:
parent
d8f52ed821
commit
cdf69070fd
1 changed files with 3 additions and 4 deletions
|
|
@ -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 }]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue