diff --git a/frontend/src/__tests__/ContactPage.spec.ts b/frontend/src/__tests__/ContactPage.spec.ts index a317239..86f39f2 100644 --- a/frontend/src/__tests__/ContactPage.spec.ts +++ b/frontend/src/__tests__/ContactPage.spec.ts @@ -3,8 +3,23 @@ import { mount } from '@vue/test-utils' import ContactPage from '@/pages/ContactPage.vue' describe('ContactPage', () => { - it('renders heading', () => { + it('renders heading and lead', () => { const wrapper = mount(ContactPage) expect(wrapper.text()).toContain('Kontakta oss') + expect(wrapper.text()).toContain('klagomål') + }) + + it('renders general support email', () => { + const wrapper = mount(ContactPage) + const link = wrapper.find('a[href="mailto:kontakt@bilhej.se"]') + expect(link.exists()).toBe(true) + expect(link.text()).toBe('kontakt@bilhej.se') + }) + + it('renders complaints email', () => { + const wrapper = mount(ContactPage) + const link = wrapper.find('a[href="mailto:jcamorling@gmail.com"]') + expect(link.exists()).toBe(true) + expect(wrapper.text()).toContain('jcamorling@gmail.com') }) }) diff --git a/frontend/src/pages/ContactPage.vue b/frontend/src/pages/ContactPage.vue index 9029413..e3ba60e 100644 --- a/frontend/src/pages/ContactPage.vue +++ b/frontend/src/pages/ContactPage.vue @@ -1,25 +1,143 @@ - +