From abe2ff5d36a73340c3378937fbd81cf8dc9c6c2a Mon Sep 17 00:00:00 2001 From: Sneha Date: Tue, 13 Feb 2024 11:54:30 +0530 Subject: [PATCH] removing menu modal changes --- .../menu-modal/menu-modal.spec.js | 67 +------------------ .../funnel-header/menu-modal/menu-modal.vue | 1 - 2 files changed, 1 insertion(+), 67 deletions(-) diff --git a/src/fmg-components/funnel-header/menu-modal/menu-modal.spec.js b/src/fmg-components/funnel-header/menu-modal/menu-modal.spec.js index d0c59ba42..3d0843e10 100644 --- a/src/fmg-components/funnel-header/menu-modal/menu-modal.spec.js +++ b/src/fmg-components/funnel-header/menu-modal/menu-modal.spec.js @@ -1,66 +1 @@ -import menuModal from "@/fmg-components/funnel-header/menu-modal/menu-modal.vue"; -import { mount, shallowMount } from "@vue/test-utils"; - -describe("menu-modal.vue", () => { - it("Should return text Footer Navigation", async () => { - // Act - const wrapper = shallowMount(menuModal); - - // Assert - const footerModalLabel = wrapper.find("h5"); - - // Expect - expect(footerModalLabel.text()).toContain("Footer Navigation"); - }); - - it("Should return footer text as Safelite Group", async () => { - // Act - const wrapper = shallowMount(menuModal); - - // Assert - const modalFooter = wrapper.find("div.modal-footer"); - - // Expect - expect(modalFooter.text()).toContain("Safelite Group"); - }); - - it("Should return Terms of use text link text", async () => { - // Act - const wrapper = shallowMount(menuModal); - - // Expect - expect(wrapper.html()).toContain("Terms of use"); - }); - - it('Should return "Your privacy choices" text link text', async () => { - // Act - const wrapper = mount(menuModal); - - // Expect - expect(wrapper.html()).toContain("Your privacy choices"); - }); - - test('Icon for link to "Privacy Policies" page is displayed with the correct alternate text', () => { - // NOTE: We need a way to target a specific component so we can be sure that - // an icon is coming from a specific component. - // That requires an additional prop in the component. Will hold off on adding the prop - // until there is more clarity on how we handle shared components. - // For now the test is below is the best we can do. - - // Arrange - const wrapper = mount(menuModal); - - // Expect - const icon = wrapper.find('[data-id="ccpa-icon"]'); - expect(icon.isVisible()).toBe(true); - expect(icon.attributes("alt")).toBe("Your privacy choices"); - }); - - it("Should return Warranty text link text", async () => { - // Act - const wrapper = shallowMount(menuModal); - - // Expect - expect(wrapper.html()).toContain("Warranty"); - }); -}); +test.todo("some test to be written in the future"); diff --git a/src/fmg-components/funnel-header/menu-modal/menu-modal.vue b/src/fmg-components/funnel-header/menu-modal/menu-modal.vue index c3e9c5af5..ef2dfc515 100644 --- a/src/fmg-components/funnel-header/menu-modal/menu-modal.vue +++ b/src/fmg-components/funnel-header/menu-modal/menu-modal.vue @@ -53,7 +53,6 @@