diff --git a/src/common-components/funnel-footer/funnel-footer.spec.js b/src/common-components/funnel-footer/funnel-footer.spec.js new file mode 100644 index 000000000..ef2049eb5 --- /dev/null +++ b/src/common-components/funnel-footer/funnel-footer.spec.js @@ -0,0 +1,30 @@ +import { mount } from "@vue/test-utils"; +import funnelFooter from "./funnel-footer"; + +describe("funnel-footer.vue", () => { + + it("Should return footer-link class", async () => { + // Act + try { + global.document.getElementById = jest.fn().mockImplementation(()=> { + return {} + }); + + const wrapper = mount(funnelFooter, { + propsData: { + footer: true + }, + }); + + // Assert + const link = wrapper.find("a"); + + // Expect + expect(link.attributes('class')).toContain("footer-link"); + expect(global.document.getElementById).toBeCalled(); + } catch(error) { + console.log(error); + } + + }); +}); diff --git a/src/common-components/funnel-footer/funnel-footer.vue b/src/common-components/funnel-footer/funnel-footer.vue new file mode 100644 index 000000000..90c380b08 --- /dev/null +++ b/src/common-components/funnel-footer/funnel-footer.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index 2f5dc0308..ded06272c 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -40,6 +40,31 @@ +
+
+

Links

+
+
+
+
+

+

+

+ +
+

List Card

@@ -806,95 +831,109 @@

Button Question

- - - - - - - - - - - +
+
+ + + + + + + + + + + +
+
+
+
+

Funnel Footer

+
+
+
+
+ +
+
@@ -910,6 +949,7 @@ import listButtonHorizontal from "@/ux-components/list-button-horizontal/list-bu import checkbox from "@/ux-components/checkbox/checkbox"; import buttonQuestion from "@/common-components/button-question/button-question"; import textLink from "@/ux-components/text-link/text-link"; +import funnelFooter from "@/common-components/funnel-footer/funnel-footer"; export default { name: "App", components: { @@ -924,6 +964,7 @@ export default { funnelHeader, buttonQuestion, textLink, + funnelFooter }, data() { return { diff --git a/src/ux-components/button-main/button-main.vue b/src/ux-components/button-main/button-main.vue index ff2a5f83a..c8888c310 100644 --- a/src/ux-components/button-main/button-main.vue +++ b/src/ux-components/button-main/button-main.vue @@ -1,11 +1,5 @@