From 60cb07fc898a9d207e32561ecef40ad6999cc224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20M=C3=B6rling?= Date: Fri, 22 May 2026 12:47:46 +0200 Subject: [PATCH] Redesign contact page with separate support and complaint channels. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace single placeholder mailto with two contact cards - Show kontakt@bilhej.se for general questions and service issues - Show jcamorling@gmail.com for complaints with clearer labeling - Add tips section pointing users to Mina beställningar first - Extend ContactPage tests for both email addresses Co-authored-by: Cursor --- frontend/src/__tests__/ContactPage.spec.ts | 17 +- frontend/src/pages/ContactPage.vue | 221 +++++++++++++++++++-- 2 files changed, 219 insertions(+), 19 deletions(-) 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 @@ - +