From 4d2fe040a085d2842c26d60415b0e5d7a92f02e4 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Tue, 17 Oct 2023 08:39:47 -0400 Subject: [PATCH] Added TODO for one more important test and Prettified --- .../service-location/shop-question/shop-question.spec.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/layouts/service-location/shop-question/shop-question.spec.js b/src/layouts/service-location/shop-question/shop-question.spec.js index 1a02efff3..758aa759f 100644 --- a/src/layouts/service-location/shop-question/shop-question.spec.js +++ b/src/layouts/service-location/shop-question/shop-question.spec.js @@ -280,7 +280,7 @@ describe("shop-question.vue", () => { // Act await wrapper.setProps({ - shopProviderData: shopQuestionInitialData, + shopProviderData: alsoShopQuestionInitialData, }); await wrapper.vm.$nextTick(); @@ -348,7 +348,7 @@ describe("shop-question.vue", () => { attachTo: document.body, }, }); - + // Act await wrapper.setProps({ shopProviderData: alsoShopQuestionInitialData, @@ -364,7 +364,9 @@ describe("shop-question.vue", () => { expect(showMoreShopsLink.exists()).toBeFalsy(); }); - it("Should display the next three shops when the 'Show more location' link is clicked", async () => { + //TODO: Add test to ensure the "Show more locations" link is not visible when all the existing shops are displayed. + + it("Should display the next three shops when the 'Show more locations' link is clicked", async () => { // Arrange const displayedAnswers = [ { @@ -550,6 +552,7 @@ describe("shop-question.vue", () => { // Assert expect(wrapper.vm.answers.length).toEqual(3); }); + }); function setupMocks({ mountOptions, mixins, props, isShallowMount = true }) {