drop redundant "Home" from PDP breadcrumbs
Logo already links home; breadcrumb now starts at category. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,19 +27,12 @@ defmodule SimpleshopThemeWeb.ShopLive.ProductShowTest do
|
||||
assert html =~ SimpleshopTheme.Cart.format_price(product.price)
|
||||
end
|
||||
|
||||
test "renders breadcrumb with Home link", %{conn: conn} do
|
||||
product = List.first(PreviewData.products())
|
||||
{:ok, _view, html} = live(conn, ~p"/products/#{product.id}")
|
||||
|
||||
assert html =~ "Home"
|
||||
assert html =~ ~s(href="/")
|
||||
end
|
||||
|
||||
test "renders breadcrumb with category link", %{conn: conn} do
|
||||
product = List.first(PreviewData.products())
|
||||
{:ok, _view, html} = live(conn, ~p"/products/#{product.id}")
|
||||
|
||||
assert html =~ product.category
|
||||
assert html =~ "/collections/"
|
||||
end
|
||||
|
||||
test "renders add to cart button", %{conn: conn} do
|
||||
|
||||
Reference in New Issue
Block a user