FramingExpectations

io.github.frikit.twirlspec.expect.FramingExpectations

Expectations about the frame of a GOV.UK page: what it is called, what it is headed, and the furniture the layout is responsible for.

Attributes

Source
FramingExpectations.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def caption(key: String, args: Any*): Expectation

The caption rendered above (or inside) the h1.

The caption rendered above (or inside) the h1.

Attributes

Source
FramingExpectations.scala
def caption(expected: Expected): Expectation

The caption against any expected value.

The caption against any expected value.

Attributes

Source
FramingExpectations.scala
def captionText(literal: String): Expectation

The caption, given as the exact words rather than a message key.

The caption, given as the exact words rather than a message key.

Attributes

Source
FramingExpectations.scala
def exactTitle(literal: String): Expectation

The browser title in full, including service name and " - GOV.UK".

The browser title in full, including service name and " - GOV.UK".

Attributes

Source
FramingExpectations.scala
def heading(key: String, args: Any*): Expectation

The single =.

The single =.

Attributes

Source
FramingExpectations.scala
def heading(expected: Expected): Expectation

The single = against any expected value, ignoring a caption rendered inside it.

The single = against any expected value, ignoring a caption rendered inside it.

Attributes

Source
FramingExpectations.scala
def headingAtLevel(level: Int, expected: Expected): Expectation

A heading at a given level says this.

A heading at a given level says this.

Attributes

Source
FramingExpectations.scala
def headingText(literal: String): Expectation

The =, given as the exact words rather than a message key.

The =, given as the exact words rather than a message key.

Attributes

Source
FramingExpectations.scala
def serviceName(key: String = ...): Expectation

The service or site name in the header.

The service or site name in the header.

Attributes

Source
FramingExpectations.scala
def subheading(key: String, args: Any*): Expectation

An h2 with the given message key.

An h2 with the given message key.

Attributes

Source
FramingExpectations.scala
def title(key: String, args: Any*): Expectation

The browser title, ignoring the " - Service name - GOV.UK" suffix the layout appends and the translated "Error:" prefix an error state adds.

The browser title, ignoring the " - Service name - GOV.UK" suffix the layout appends and the translated "Error:" prefix an error state adds.

Attributes

Source
FramingExpectations.scala
def title(expected: Expected): Expectation

The browser title against any expected value, ignoring the layout's suffix and an error prefix.

The browser title against any expected value, ignoring the layout's suffix and an error prefix.

Attributes

Source
FramingExpectations.scala
def titleText(literal: String): Expectation

The browser title, given as the exact words rather than a message key.

The browser title, given as the exact words rather than a message key.

Attributes

Source
FramingExpectations.scala

Concrete fields

A language switcher, however it is rendered.

A language switcher, however it is rendered.

Attributes

Source
FramingExpectations.scala

The alpha or beta phase banner is present.

The alpha or beta phase banner is present.

Attributes

Source
FramingExpectations.scala

The session-timeout dialog is wired up.

The session-timeout dialog is wired up.

Attributes

Source
FramingExpectations.scala