Excessibility.LiveViewHelpers (Excessibility v0.14.0)

View Source

Wrapper functions for Phoenix.LiveViewTest helpers that automatically capture snapshots when @tag capture_snapshots: true is used.

Summary

Functions

Wraps Phoenix.LiveViewTest.element/2 to just pass through.

Wraps Phoenix.LiveViewTest.live/2 to capture initial render.

Wraps Phoenix.LiveViewTest.render/1 to just pass through.

Wraps Phoenix.LiveViewTest.render_change/2 to capture after change.

Wraps Phoenix.LiveViewTest.render_click/1 to capture after click.

Wraps Phoenix.LiveViewTest.render_click/2 to capture after click.

Wraps Phoenix.LiveViewTest.render_submit/2 to capture after submit.

Functions

element(view_or_element, selector)

(macro)

Wraps Phoenix.LiveViewTest.element/2 to just pass through.

extract_view_runtime(view)

live(conn, path_or_action)

(macro)

Wraps Phoenix.LiveViewTest.live/2 to capture initial render.

render(view_or_element)

(macro)

Wraps Phoenix.LiveViewTest.render/1 to just pass through.

render_change(element_or_view, value)

(macro)

Wraps Phoenix.LiveViewTest.render_change/2 to capture after change.

render_click(element)

(macro)

Wraps Phoenix.LiveViewTest.render_click/1 to capture after click.

render_click(element, value)

(macro)

Wraps Phoenix.LiveViewTest.render_click/2 to capture after click.

render_submit(element_or_view, value)

(macro)

Wraps Phoenix.LiveViewTest.render_submit/2 to capture after submit.