Virtual_dom_test_helpers.Node_helperstype element = {tag_name : string;attributes : (string * string) list;string_properties : (string * string) list;bool_properties : (string * bool) list;styles : (string * string) list;handlers : (string * Handler.t) list;hooks : (string * Virtual_dom.Vdom.Attr.Hooks.For_testing.Extra.t) list;key : string option;children : t list;}Roughly analogous to Vdom.Node.t, but more easily inspectable and represented as a pure OCaml type.
val sexp_of_element : element -> Sexplib0.Sexp.tval sexp_of_t : t -> Sexplib0.Sexp.tval is_tag : tag:string -> t -> boolval has_class : cls:string -> t -> boolval to_string_html :
?filter_printed_attributes:(key:string -> data:string -> bool) ->
?censor_paths:bool ->
?censor_hash:bool ->
?path_censoring_message:string ->
?hash_censoring_message:string ->
t ->
stringval inner_text : t -> stringval unsafe_convert_exn : Virtual_dom.Vdom.Node.t -> tval trigger :
?extra_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
t ->
event_name:string ->
unitval trigger_hook :
t ->
type_id:'t Core.Type_equal.Id.t ->
name:string ->
f:('t -> 'a -> unit Virtual_dom.Vdom.Effect.t) ->
arg:'a ->
unitWhen a hook-based attribute build from an event-returning function, this function will find the hook, extract the value, call that function with arg, and schedule the resulting function.
val get_hook_value_opt :
t ->
type_id:'a Core.Type_equal.Id.t ->
name:string ->
'a optionGiven an element, this function attempts to retrieve a hook with the name name, and the type-id from the hooks For_testing module.
Raises if called on a Widget or Text node, or if a hook matching name was found, but the type id does not match.
val get_hook_value : t -> type_id:'a Core.Type_equal.Id.t -> name:string -> 'aLike get_hook_value_opt, but also raises if the hook was not found.
module User_actions : sig ... endConvenience functions for trigger, closely modeling user interactions.
module Linter : sig ... end