Fluffy

A friendly three-headed Fluffy asleep beside an Elixir wizard playing a flute, with the heads labeled Live, Static, and Playwright

Phoenix feature tests. Three drivers, one Playwright-shaped API.

Hex.pm HexDocs CI License

Start with :phoenix to test controller pages and LiveViews in-process. Switch to :playwright when a test needs JavaScript, CSS layout, or other browser behavior. The actions and assertions stay the same:

creature_row =
  by_role(:table, "Hagrid's creatures")
  |> by_role(:row)
  |> filter(has: by_text("Fluffy", exact: true))

start_session(:phoenix)
|> visit("/creatures")
|> click(button(creature_row, "Play flute"))
|> assert_has(by_role(creature_row, :cell, "Asleep"))

Install Fluffy, then follow Your first test for the imports and session setup used above.

Coming from PhoenixTest? The migration guide shows how to rewrite tests or keep familiar helpers with the facade. For an existing Fluffy suite, see Upgrading to 0.9.

Guides

See CONTRIBUTING.md for developing Fluffy itself.

License

Fluffy is released under the MIT License.