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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user