SummaryRowExpectation

io.github.frikit.twirlspec.expect.SummaryRowExpectation
final case class SummaryRowExpectation(key: Expected, value: Option[String] = ..., changeHref: Option[String] = ..., actionTexts: Option[List[Expected]] = ...) extends Expectation

One row of a check-your-answers summary list.

Attributes

Source
ContentExpectations.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Expectation
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def check(page: Page): Seq[Violation]

Empty means satisfied.

Empty means satisfied.

Attributes

Source
ContentExpectations.scala
def description: String

Human description, used when listing what a page was checked against.

Human description, used when listing what a page was checked against.

Attributes

Source
ContentExpectations.scala
def withActions(keys: String*): SummaryRowExpectation

The row's action links say these things, each from a message key.

The row's action links say these things, each from a message key.

Attributes

Source
ContentExpectations.scala

One of the row's actions links to this URL.

One of the row's actions links to this URL.

Attributes

Source
ContentExpectations.scala

The row's value reads exactly like this.

The row's value reads exactly like this.

Attributes

Source
ContentExpectations.scala

Inherited methods

def and(other: Expectation): Expectation

Both this expectation and another, as one.

Both this expectation and another, as one.

Attributes

Inherited from:
Expectation
Source
Expectation.scala

Downgrade every violation this expectation produces to a warning.

Downgrade every violation this expectation produces to a warning.

Attributes

Inherited from:
Expectation
Source
Expectation.scala
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def when(p: Page => Boolean): Expectation

Only apply this expectation when the page satisfies a predicate.

Only apply this expectation when the page satisfies a predicate.

Attributes

Inherited from:
Expectation
Source
Expectation.scala