View Source Pages.Driver.LiveView (Pages v0.5.3)

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.

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

Link to this function

click(page, atom, title, selector)

View Source

Callback implementation for Pages.Driver.click/4.

Link to this function

live_redirect(page, destination_path)

View Source
@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.

Link to this function

submit_form(page, selector)

View Source

Callback implementation for Pages.Driver.submit_form/2.

Link to this function

submit_form(page, selector, schema, attrs)

View Source

Callback implementation for Pages.Driver.submit_form/4.

Link to this function

update_form(page, selector, schema, attrs)

View Source

Callback implementation for Pages.Driver.update_form/4.

Go to the given URL, assuming that it will be a new LiveView

Link to this function

with_child_component(page, child_id, fun)

View Source

Find a child component, and pass it as a new Page into the given function.

Rerenders the top-level page upon completion.