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 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 }]
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue