ContentExpectations
Expectations about the words on the page and the components carrying them.
Attributes
- Source
- ContentExpectations.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait TwirlSpecDsltrait AriaCheckstrait AllCheckstrait GovukServiceCheckstrait HmrcServiceCheckstrait GovukCheckstrait HtmlCheckstrait I18nCheckstrait PageCasestrait PageCataloguetrait TwirlSuitetrait CoverageCheckstrait QualityCheckstrait WcagCheckstrait TwirlSpecShow all
Members list
Value members
Concrete methods
One selector's first match comes before another's in document order.
One selector's first match comes before another's in document order.
Reading order is not a detail: an error summary announced after the form it describes is announced too late to be useful.
Attributes
- Source
- ContentExpectations.scala
The bullet list contains exactly these items, in order.
The column headers of the one table on the page, or in within, in order: what tableHeaders reads, less the header each row has of its own.
The column headers of the one table on the page, or in within, in order: what tableHeaders reads, less the header each row has of its own.
Attributes
- Source
- ContentExpectations.scala
The resolved message appears somewhere in the page's visible text.
The resolved message appears somewhere in the page's visible text.
Attributes
- Source
- ContentExpectations.scala
Somewhere in the page body, given as the exact words rather than a message key.
Somewhere in the page body, given as the exact words rather than a message key.
Attributes
- Source
- ContentExpectations.scala
At least one element matches this selector. The plural form, where several matches are legitimate.
At least one element matches this selector. The plural form, where several matches are legitimate.
Attributes
- Source
- ContentExpectations.scala
The visible summary of a collapsed details block.
An element with this id exists.
Exactly this many elements match.
The element with this id carries this class.
The element with this id says this.
The text of an inset text block.
A link with the given text pointing at the given URL.
A link, given as the exact words rather than a message key.
A link, given as the exact words rather than a message key.
Attributes
- Source
- ContentExpectations.scala
A link found by id, whatever it says.
The resolved message appears nowhere in the page's visible text.
The resolved message appears nowhere in the page's visible text.
Attributes
- Source
- ContentExpectations.scala
Nothing matches this selector.
No element with this id exists.
The text of a notification banner.
The numbered list contains exactly these items, in order.
The numbered list contains exactly these items, in order.
Attributes
- Source
- ContentExpectations.scala
The body of a confirmation panel.
The title of a confirmation panel.
The message appears inside a paragraph.
The summary list holds exactly these key -> value rows, in order. A key is a message key, or any expected value: messageKey("x.dob", name) for one that takes arguments, literal, matching or anyText.
The summary list holds exactly these key -> value rows, in order. A key is a message key, or any expected value: messageKey("x.dob", name) for one that takes arguments, literal, matching or anyText.
Attributes
- Source
- ContentExpectations.scala
A row of a govukSummaryList, by its key.
The table header cells, in order.
A row whose cells read exactly like this.
The text of a GOV.UK warning callout.
These expectations, asked of one part of the page: the one element this selector matches, for a page with two tables, or a search form before the form under test.
These expectations, asked of one part of the page: the one element this selector matches, for a page with two tables, or a search form before the form under test.
within("#results")(columnHeaders("x.name", "x.born"), tableRow("Ada", "1815"))
within("form[action='/save']")(formPostsTo("/save"), submitButton())
What it matches has to be one element, or the expectation fails, as it does for anything naming one element. What an element says of another by id, such as for or aria-describedby, still reaches the whole page. So do the standards, and the page's title and language. What is asserted here counts for the page's coverage.
Attributes
- Source
- ContentExpectations.scala