BB.LiveView.FeatureCase (bb_liveview v0.2.4)

View Source

Test case for feature tests using phoenix_test.

Provides a unified testing interface for both LiveView and static pages.

Example

defmodule BB.LiveView.DashboardTest do
  use BB.LiveView.FeatureCase

  test "shows robot name", %{conn: conn} do
    conn
    |> visit("/robot")
    |> assert_has("h1", text: "TestRobot")
  end
end