diff --git a/webapp/components/PageFooter/PageFooter.spec.js b/webapp/components/PageFooter/PageFooter.spec.js index a7349496b..d82d03982 100644 --- a/webapp/components/PageFooter/PageFooter.spec.js +++ b/webapp/components/PageFooter/PageFooter.spec.js @@ -56,12 +56,12 @@ describe('PageFooter.vue', () => { beforeEach(async () => { const links = { ...linksDefault, - ORGANIZATION: null, - IMPRINT: null, - TERMS_AND_CONDITIONS: null, - CODE_OF_CONDUCT: null, - DATA_PRIVACY: null, - FAQ: null, + ORGANIZATION: { ...linksDefault.ORGANIZATION, externalLink: null }, + IMPRINT: { ...linksDefault.IMPRINT, externalLink: null }, + TERMS_AND_CONDITIONS: { ...linksDefault.TERMS_AND_CONDITIONS, externalLink: null }, + CODE_OF_CONDUCT: { ...linksDefault.CODE_OF_CONDUCT, externalLink: null }, + DATA_PRIVACY: { ...linksDefault.DATA_PRIVACY, externalLink: null }, + FAQ: { ...linksDefault.FAQ, externalLink: null }, } wrapper = Wrapper() wrapper.setData({ links }) @@ -77,15 +77,15 @@ describe('PageFooter.vue', () => { }) it('renders TERMS_AND_CONDITIONS as nuxt-link', () => { - expect(wrapper.find('span[data-test="terms-nuxt-link"]').exists()).toBeTruthy() + expect(wrapper.find('span[data-test="terms-and-conditions-nuxt-link"]').exists()).toBeTruthy() }) it('renders CODE_OF_CONDUCT as nuxt-link', () => { - expect(wrapper.find('span[data-test="code-nuxt-link"]').exists()).toBeTruthy() + expect(wrapper.find('span[data-test="code-of-conduct-nuxt-link"]').exists()).toBeTruthy() }) it('renders DATA_PRIVACY as nuxt-link', () => { - expect(wrapper.find('span[data-test="data-nuxt-link"]').exists()).toBeTruthy() + expect(wrapper.find('span[data-test="data-privacy-nuxt-link"]').exists()).toBeTruthy() }) it('renders FAQ as nuxt-link', () => { @@ -97,12 +97,12 @@ describe('PageFooter.vue', () => { beforeEach(async () => { const links = { ...linksDefault, - ORGANIZATION: 'https://ocelot.social', - IMPRINT: 'https://ocelot.social/IMPRINT', - TERMS_AND_CONDITIONS: 'https://ocelot.social/TERMS_AND_CONDITIONS', - CODE_OF_CONDUCT: 'https://ocelot.social/CODE_OF_CONDUCT', - DATA_PRIVACY: 'https://ocelot.social/DATA_PRIVACY', - FAQ: 'https://ocelot.social/FAQ', + ORGANIZATION: { ...linksDefault.ORGANIZATION, externalLink: 'https://ocelot.social' }, + IMPRINT: { ...linksDefault.IMPRINT, externalLink: 'https://ocelot.social/IMPRINT' }, + TERMS_AND_CONDITIONS: { ...linksDefault.TERMS_AND_CONDITIONS, externalLink: 'https://ocelot.social/TERMS_AND_CONDITIONS' }, + CODE_OF_CONDUCT: { ...linksDefault.CODE_OF_CONDUCT, externalLink: 'https://ocelot.social/CODE_OF_CONDUCT' }, + DATA_PRIVACY: { ...linksDefault.DATA_PRIVACY, externalLink: 'https://ocelot.social/DATA_PRIVACY' }, + FAQ: { ...linksDefault.FAQ, externalLink: 'https://ocelot.social/FAQ' }, } wrapper = Wrapper() wrapper.setData({ links }) diff --git a/webapp/components/PageFooter/PageFooter.vue b/webapp/components/PageFooter/PageFooter.vue index 6bf049b05..89e2d60d3 100644 --- a/webapp/components/PageFooter/PageFooter.vue +++ b/webapp/components/PageFooter/PageFooter.vue @@ -1,69 +1,19 @@