Fluffy.Page (Fluffy v0.3.1)

Copy Markdown View Source

One logical page or tab within a Fluffy session.

A Phoenix page receives fresh Static or LiveView driver state whenever navigation commits a new document. Its monotonically increasing revision survives those state replacements.

Construct page assertions with Fluffy.Expect or Fluffy.Assert.

Summary

Metadata

Types

query_value()

@type query_value() :: String.t() | [String.t()]

t()

@opaque t()

title_expectation()

@type title_expectation() :: String.t() | Regex.t()

url_component()

@type url_component() ::
  {:path, String.t()}
  | {:query, %{required(String.t()) => query_value()}}
  | {:query_mode, :exact | :subset}
  | {:fragment, String.t() | nil}

url_expectation()

@type url_expectation() :: String.t() | Regex.t() | [url_component()]