Expand description
Reads values back out of rendered responses: bodies, cookies, form data, and the semantic HTML queries over tables, fields, and filters.
Re-exported for compatibility by tablo-test, whose client drives the
requests these helpers read.
Re-exports§
pub use dom::FilterOption;pub use dom::Row;pub use dom::RowActions;pub use dom::field_error;pub use dom::filter_options;pub use dom::row_actions;pub use dom::rows;
Modules§
- dom
- Semantic queries over rendered HTML for tests.
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.
- cookie_
header - One
Cookieheader value from(name, value)pairs, orNonewhen empty. - 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. - 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. - response_
cookies - The
(name, value)pairs a response’sSet-Cookieheaders carry. - 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.