# `Filament.Test.LiveView.Helpers`

Helper functions for Rung 4 integration tests.

These wrap Phoenix.LiveViewTest functions with Filament-specific conventions.
Import via `use Filament.Test.LiveView`.

# `assert_has_class`

```elixir
@spec assert_has_class(
  view :: term(),
  selector :: String.t(),
  class_name :: String.t()
) :: :ok
```

Assert that `selector` element has CSS class `class_name` in the current render.
Raises RuntimeError with a descriptive message on failure.

# `filament_click`

```elixir
@spec filament_click(view :: term(), selector :: String.t()) :: String.t()
```

Click the element matching `selector` in a live view.
Wraps Phoenix.LiveViewTest.element/2 + render_click/1.
Returns the updated rendered HTML string.

# `filament_submit`

```elixir
@spec filament_submit(view :: term(), selector :: String.t(), params :: map()) ::
  String.t()
```

Submit the form matching `selector` with `params`.
Wraps Phoenix.LiveViewTest.element/2 + render_submit/2.
Returns the updated rendered HTML string.

# `filament_text`

```elixir
@spec filament_text(view :: term()) :: String.t()
```

Return the current rendered text content (tags stripped) for the live view.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
