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

A page driver for interacting with Phoenix.LiveView pages.

Link to this section Summary

Functions

Callback implementation for Pages.Driver.click/3.

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

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, title, selector)

View Source

Callback implementation for Pages.Driver.click/3.

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
@spec submit_form(Pages.Driver.t(), Pages.Css.selector()) :: Pages.Driver.t()

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