Fluffy
Phoenix feature tests. Three drivers, one Playwright-shaped API.
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
- Why Fluffy — the problem it solves, how it compares with PhoenixTest and PhoenixTest.Playwright, and its trade-offs
- Installation and runtime — endpoint, browser, Ecto sandbox setup, and usage rules for coding agents
- Usage — your first test, backend choice, and a shared test case
- Locators and frames — finding elements and reaching into iframes
- Actions and waiting — actions, waiting, uploads, and controlling time
- Assertions —
assertandrefute, visibility, and page assertions - Debugging and native access — failures, browser diagnostics, and the native escape hatch
- Advanced events and pages — tabs, windows, iframe limitations, downloads, navigation, dialogs, and network events
- Capability matrix — backend differences and limitations
See CONTRIBUTING.md for developing Fluffy itself.
License
Fluffy is released under the MIT License.