Expand description
Drives a built Router without a socket, carrying cookies, CSRF token, and
tenant, and reads values back out of its responses.
Structs§
- Empty
Table - Why a table rendered no rows, and the links it offers out of that state.
- Filter
Option - One
<option>of a filter select, or one checkbox of a filter checklist. - Row
- One data row of a rendered table.
- RowActions
- The action targets of one row.
- Test
Client - Sends requests carrying cookies and tenant.
Enums§
- Error
Kind - Why a field renders an error, as its error slot’s
data-errornames it.
Constants§
- SESSION_
COOKIE - Names the session cookie Topcoat’s default token store writes.
Functions§
- body_
bytes - Collect a response body as bytes.
- body_
string - Collect a response body as a lossy UTF-8 string.
- confirms_
first - Whether the button posting to
actionasks first: a confirming trigger is a plain button that opens the dialog, a direct write is a submit button.Nonewhen no button posts there. - cookie_
header - One
Cookieheader value from(name, value)pairs, orNonewhen empty. - empty_
table - The zero-rows message of
html, orNonewhen the table renders rows. - field_
error - Why the field posting
namewas refused, orNonewhen it renders no error. - field_
error_ message - The sentence rendered under the field posting
name, orNonewhen it renders no error. - filter_
options - The options of the select or checklist filter
name, orNonewhennamenames neither. A checklist offering no option reads as an empty list, since its control still renders. - find_
href_ with - The first
hrefinhtmlthat containsneedle, its entities decoded. - form_
body - URL-encode
(key, value)pairs into an urlencoded form body. - input_
value - Reads the
valueof the named<input>in rendered HTML, in either attribute order or quote style. - mount
panelmounted on a router holdingdb, beside the app’s own discovered pages and routes: the router an app builds, without its asset bundle.- multipart_
body - Builds a multipart body, one part per entry:
Noneis a text part,Some("")the browser’s “no file chosen” part,Some(name)a chosen file. - notification
- The flash notification a response set for the next page, decoded.
- refusal
- The declaration mistakes a panel refused to mount with, for a test to match on their
kind. - response_
cookies - The
(name, value)pairs a response’sSet-Cookieheaders carry. - row_
actions - The action targets of the row whose checkbox value or action URL carries
key, orNonewhen no row matches. - row_
keys - The record key of every row in document order, read from its bulk checkbox: a row with no checkbox has none to read.
- rows
- The data rows of
htmlin document order, excluding group headers. - session_
cookie_ value - The session cookie value a response set, if any.
- set_
cookie_ header - The full
Set-Cookieheader forname, so tests can assert attributes.