View Source Pages.Driver.LiveView (Pages v0.5.2)
A page driver for interacting with Phoenix.LiveView pages.
Link to this section Summary
Functions
Perform a live redirect. Not implemented in Pages
because it's specific to LiveView.
Callback implementation for Pages.Driver.rerender/1
.
Callback implementation for Pages.Driver.submit_form/2
.
Callback implementation for Pages.Driver.submit_form/4
.
Callback implementation for Pages.Driver.update_form/4
.
Go to the given URL, assuming that it will be a new LiveView
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(), :get | :post, binary(), HtmlQuery.Css.selector()) :: Pages.Driver.t()
@spec live_redirect(Pages.Driver.t(), binary()) :: Pages.Driver.t()
Perform a live redirect. Not implemented in Pages
because it's specific to LiveView.
@spec rerender(Pages.Driver.t()) :: Pages.Driver.t()
Callback implementation for Pages.Driver.rerender/1
.
@spec submit_form(Pages.Driver.t(), HtmlQuery.Css.selector()) :: Pages.Driver.t()
Callback implementation for Pages.Driver.submit_form/2
.
@spec submit_form(Pages.Driver.t(), HtmlQuery.Css.selector(), atom(), Pages.attrs_t()) :: Pages.Driver.t()
Callback implementation for Pages.Driver.submit_form/4
.
@spec update_form(Pages.Driver.t(), HtmlQuery.Css.selector(), atom(), Pages.attrs_t()) :: Pages.Driver.t()
Callback implementation for Pages.Driver.update_form/4
.
Go to the given URL, assuming that it will be a new LiveView
Find a child component, and pass it as a new Page into the given function.
Rerenders the top-level page upon completion.