View Source Pages.Driver.LiveView (Pages v0.6.0)
A page driver for interacting with Phoenix.LiveView pages.
Link to this section Summary
Functions
Called from Pages.click/4
when the given page is a LiveView.
Perform a live redirect to the given path.
Called from Paged.render_change/3
when the given page is a LiveView.
Called from Pages.rerender/1
when the given page is a LiveView.
Called from Pages.submit_form/2
when the given page is a LiveView.
Called from Pages.submit_form/4
when the given page is a LiveView.
Called from Pages.update_form/4
when the given page is a LiveView.
Initialize a live
with the given path.
Find a child component, and pass it as a new Page into the given function.
Link to this section Types
@type t() :: %Pages.Driver.LiveView{ conn: Plug.Conn.t(), live: any(), rendered: binary() | nil }
Link to this section Functions
@spec click(Pages.Driver.t(), Pages.http_method(), binary(), HtmlQuery.Css.selector()) :: Pages.Driver.t()
Called from Pages.click/4
when the given page is a LiveView.
@spec live_redirect(Pages.Driver.t(), binary()) :: Pages.Driver.t()
Perform a live redirect to the given path.
This is not implemented in Pages
due to its specificity to LiveView and LiveViewTest.
@spec render_change(Pages.Driver.t(), HtmlQuery.Css.selector(), Enum.t()) :: Pages.Driver.t()
Called from Paged.render_change/3
when the given page is a LiveView.
@spec rerender(Pages.Driver.t()) :: Pages.Driver.t()
Called from Pages.rerender/1
when the given page is a LiveView.
@spec submit_form(Pages.Driver.t(), HtmlQuery.Css.selector()) :: Pages.Driver.t()
Called from Pages.submit_form/2
when the given page is a LiveView.
@spec submit_form(Pages.Driver.t(), HtmlQuery.Css.selector(), atom(), Pages.attrs_t()) :: Pages.Driver.t()
Called from Pages.submit_form/4
when the given page is a LiveView.
@spec update_form(Pages.Driver.t(), HtmlQuery.Css.selector(), atom(), Pages.attrs_t()) :: Pages.Driver.t()
Called from Pages.update_form/4
when the given page is a LiveView.
@spec visit(Pages.Driver.t(), binary()) :: Pages.Driver.t()
Initialize a live
with the given path.
This is called from Pages.visit/2
when the conn indicates that the pages is a LiveView,
and should only be called directly if the parent function does not work for some reason.
Find a child component, and pass it as a new Page into the given function.
Rerenders the top-level page upon completion. See Pages.with_child_component/3
.