fix: dashboard quote link points to quote wizard instead of suppliers page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-22 14:41:51 +01:00
parent 156cd43a14
commit 35fe934fec
4 changed files with 11 additions and 3 deletions

View File

@@ -27,7 +27,7 @@
<h2 class="text-xl mb-4">{{ t.dash_quick_actions }}</h2>
<div class="grid-3">
<a href="{{ url_for('planner.index') }}" class="btn text-center">{{ t.dash_open_planner }}</a>
<a href="{{ url_for('leads.suppliers') }}" class="btn-outline text-center">{{ t.dash_get_quotes }}</a>
<a href="{{ url_for('leads.quote_request') }}" class="btn-outline text-center">{{ t.dash_get_quotes }}</a>
<a href="{{ url_for('dashboard.settings') }}" class="btn-outline text-center">{{ t.dash_settings }}</a>
</div>
</main>

View File

@@ -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",

View File

@@ -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",

View File

@@ -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")