From b95124b428508013c9cf5438c02d0fbb6d24bbbf Mon Sep 17 00:00:00 2001 From: brydon1 Date: Thu, 7 Sep 2023 11:05:48 -0400 Subject: [PATCH] Removing bailout navigation test --- src/layouts/vin-lookup/vin-lookup.spec.js | 28 ----------------------- 1 file changed, 28 deletions(-) diff --git a/src/layouts/vin-lookup/vin-lookup.spec.js b/src/layouts/vin-lookup/vin-lookup.spec.js index 2e59dd23..d38cd24c 100644 --- a/src/layouts/vin-lookup/vin-lookup.spec.js +++ b/src/layouts/vin-lookup/vin-lookup.spec.js @@ -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 - ); - }); - }); }); }); });