Fixed broken unit test
This commit is contained in:
parent
049e1caa7c
commit
bda7161248
1 changed files with 2 additions and 35 deletions
|
|
@ -332,7 +332,7 @@ describe("address-lookup.vue", () => {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("if a different vehicle is found than the one entered and the selected glass is not available for that vehicle, navigate back to vehicle-damage page", async () => {
|
test.only("if a different vehicle is found than the one entered and the selected glass is not available for that vehicle, navigate back to vehicle-damage page", async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const mockRegistrationAddress = {
|
const mockRegistrationAddress = {
|
||||||
streetAddress: "1234 Main St",
|
streetAddress: "1234 Main St",
|
||||||
|
|
@ -351,10 +351,9 @@ describe("address-lookup.vue", () => {
|
||||||
addressQuestions: mockRegistrationAddress
|
addressQuestions: mockRegistrationAddress
|
||||||
},
|
},
|
||||||
isCarIdDifferent: true,
|
isCarIdDifferent: true,
|
||||||
isGlassAvailableForCarId: false,
|
isSelectedGlassAvailableForVehicle: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
let carsFound = [{
|
let carsFound = [{
|
||||||
vin: "TEST_VIN2",
|
vin: "TEST_VIN2",
|
||||||
vehicle: {
|
vehicle: {
|
||||||
|
|
@ -499,38 +498,6 @@ describe("address-lookup.vue", () => {
|
||||||
expect(wrapper.findComponent({ ref: "alertNonServiceableZip" }).isVisible()).toBe(true);
|
expect(wrapper.findComponent({ ref: "alertNonServiceableZip" }).isVisible()).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
// test.only("if registration address is provided user clicks continue => show service zip field on continue click", async () => {
|
|
||||||
// // Arrange
|
|
||||||
// const mockRegistrationAddress = {
|
|
||||||
// streetAddress: "1234 Main St",
|
|
||||||
// city: "Columbus",
|
|
||||||
// state: "OH",
|
|
||||||
// zipCode: "43215"
|
|
||||||
// }
|
|
||||||
|
|
||||||
// const { wrapper } = setupMocks({
|
|
||||||
// isZipServiceable: false
|
|
||||||
// }
|
|
||||||
// );
|
|
||||||
|
|
||||||
// expect(wrapper.vm.showServiceZipField).toBeFalsy();
|
|
||||||
// expect(wrapper.findComponent({ ref: "serviceZip" }).exists()).toBe(false);
|
|
||||||
// store.commit(storeMutations.UPDATE_CAR_ID, "CARID");
|
|
||||||
|
|
||||||
// await wrapper.setData({
|
|
||||||
// customerQuestions: {
|
|
||||||
// addressQuestions: mockRegistrationAddress
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
|
|
||||||
// // Act
|
|
||||||
// await wrapper.vm.forwardButtonAction();
|
|
||||||
|
|
||||||
// // Assert
|
|
||||||
// expect(wrapper.vm.showServiceZipField).toBe(true);
|
|
||||||
// expect(wrapper.findComponent({ ref: "serviceZip" }).isVisible()).toBe(true);
|
|
||||||
// });
|
|
||||||
|
|
||||||
test("if registration address, service zip are provided, and user clicks continue => don't update service address", async () => {
|
test("if registration address, service zip are provided, and user clicks continue => don't update service address", async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const mockRegistrationAddress = {
|
const mockRegistrationAddress = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue