diff --git a/test/berrypod_web/live/shop/contact_test.exs b/test/berrypod_web/live/shop/contact_test.exs index f2f4dd4..dda2787 100644 --- a/test/berrypod_web/live/shop/contact_test.exs +++ b/test/berrypod_web/live/shop/contact_test.exs @@ -35,6 +35,14 @@ defmodule BerrypodWeb.Shop.ContactTest do end end + describe "no-JS fallback" do + test "order tracking form has action for no-JS submission", %{conn: conn} do + {:ok, view, _html} = live(conn, ~p"/contact") + + assert has_element?(view, "form[action='/contact/lookup'][method='post']") + end + end + describe "order lookup" do test "sends magic link when orders exist for email", %{conn: conn} do order_fixture(%{customer_email: "buyer@example.com", payment_status: "paid"})