Removing bailout navigation test
This commit is contained in:
parent
647eb4c919
commit
b95124b428
1 changed files with 0 additions and 28 deletions
|
|
@ -476,34 +476,6 @@ describe('vin-lookup.vue', () => {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Selected vehicle VIN do not match vehicles (CarIDs) in our system then navigate forward to bailout page.', async () => {
|
|
||||||
// Arrange
|
|
||||||
const user = userEvent.setup();
|
|
||||||
lookupVehicleByVin.mockResponse.data.error = true;
|
|
||||||
|
|
||||||
jest.spyOn(VinLookupComponent.methods, lookupVehicleByVin.methodName)
|
|
||||||
.mockResolvedValue(lookupVehicleByVinError.mockResponse);
|
|
||||||
|
|
||||||
mountOptions.data = () => ({
|
|
||||||
needToLookupVehicle: true,
|
|
||||||
bailout: true,
|
|
||||||
vin: mockValidVin
|
|
||||||
});
|
|
||||||
|
|
||||||
const { container } = render(VinLookupComponent, mountOptions);
|
|
||||||
const continueButton = container.querySelector(continueButtonQuerySelector);
|
|
||||||
await user.click(continueButton);
|
|
||||||
|
|
||||||
await flushPromises();
|
|
||||||
await waitFor(() => {
|
|
||||||
expect(mockRouter.navigate).toHaveBeenCalledTimes(1);
|
|
||||||
expect(mockRouter.navigate).toHaveBeenCalledWith(
|
|
||||||
navigationScenarios.CLICKED_FORWARD_WITH_BAILOUT,
|
|
||||||
mockRoute
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue