From 35fe934fecfbc9d0c4da96583c656f5bf67b864a Mon Sep 17 00:00:00 2001 From: Deeman Date: Sun, 22 Feb 2026 14:41:51 +0100 Subject: [PATCH] fix: dashboard quote link points to quote wizard instead of suppliers page Co-Authored-By: Claude Opus 4.6 --- web/src/padelnomics/dashboard/templates/index.html | 2 +- web/src/padelnomics/locales/de.json | 2 +- web/src/padelnomics/locales/en.json | 2 +- web/tests/test_e2e_flows.py | 8 ++++++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/web/src/padelnomics/dashboard/templates/index.html b/web/src/padelnomics/dashboard/templates/index.html index 87fd425..7a68bad 100644 --- a/web/src/padelnomics/dashboard/templates/index.html +++ b/web/src/padelnomics/dashboard/templates/index.html @@ -27,7 +27,7 @@

{{ t.dash_quick_actions }}

diff --git a/web/src/padelnomics/locales/de.json b/web/src/padelnomics/locales/de.json index ce5a59a..eb5ca46 100644 --- a/web/src/padelnomics/locales/de.json +++ b/web/src/padelnomics/locales/de.json @@ -1233,7 +1233,7 @@ "dash_plan_free_sub": "Voller Zugang zu allen Funktionen", "dash_quick_actions": "Schnellzugriff", "dash_open_planner": "Planer öffnen", - "dash_get_quotes": "Anbieter-Angebote anfragen", + "dash_get_quotes": "Angebot anfragen", "dash_settings": "Einstellungen", "dash_settings_title": "Einstellungen", "dash_settings_h1": "Einstellungen", diff --git a/web/src/padelnomics/locales/en.json b/web/src/padelnomics/locales/en.json index 5b7a930..1aa318f 100644 --- a/web/src/padelnomics/locales/en.json +++ b/web/src/padelnomics/locales/en.json @@ -1233,7 +1233,7 @@ "dash_plan_free_sub": "Full access to all features", "dash_quick_actions": "Quick Actions", "dash_open_planner": "Open Planner", - "dash_get_quotes": "Get Supplier Quotes", + "dash_get_quotes": "Request a Quote", "dash_settings": "Settings", "dash_settings_title": "Settings", "dash_settings_h1": "Settings", diff --git a/web/tests/test_e2e_flows.py b/web/tests/test_e2e_flows.py index fa0c99a..f7dbc5c 100644 --- a/web/tests/test_e2e_flows.py +++ b/web/tests/test_e2e_flows.py @@ -280,6 +280,14 @@ def test_authenticated_dashboard_loads(live_server, page): assert resp_status == "complete" +def test_dashboard_quote_link_goes_to_wizard(live_server, page): + """Dashboard 'request quote' button should link to the quote wizard, not suppliers page.""" + dev_login(page, live_server, "dashquote@example.com") + href = page.locator("a", has_text="Quote").first.get_attribute("href") + assert "/leads/quote" in href, f"Expected quote wizard link, got: {href}" + assert "suppliers" not in href, f"Link should not point to suppliers page: {href}" + + def test_unauthenticated_dashboard_redirects(live_server, page): """Without auth, /dashboard/ should redirect to login.""" page.goto(live_server + "/dashboard/", wait_until="networkidle")