For a super quick example, this is the default index controller action test in Phoenix:
describe "index" do
test "lists all products", %{conn: conn} do
conn = get(conn, product_path(conn, :index))
assert html_response(conn, 200) =~ "Listing Products"
end
end