fixed tests to look specific navigation scenarios

This commit is contained in:
Jason Wheeler 2023-02-27 14:39:34 -05:00
parent ef244574bd
commit e467db8030

View file

@ -313,6 +313,7 @@ describe("vehicle-parts.vue", () => {
//Assert
expect(wrapper.vm.$router.navigate).toHaveBeenCalled();
expect(wrapper.vm.$router.navigate).toHaveBeenCalledWith("CLICKED_FORWARD_WITH_MOLDING_QUESTIONS", {"query": {"issPage": "vehicle-parts"}}, {}, {}, expect.anything());
});
test("ForwardButtonAction triggers a router.navigate change if there are capability questions", async () => {
@ -376,6 +377,7 @@ describe("vehicle-parts.vue", () => {
//Assert
expect(wrapper.vm.$router.navigate).toHaveBeenCalled();
expect(wrapper.vm.$router.navigate).toHaveBeenCalledWith("CLICKED_FORWARD_WITH_CAPABILITY_QUESTIONS", {"query": {"issPage": "vehicle-parts"}}, {}, {}, expect.anything());
});
});