HotTestMap
hotstaq / Modules / HotTestMap
Class: HotTestMap
Maps the paths that are taken to complete a test.
Table of contents​
Constructors​
Properties​
Constructors​
constructor​
• new HotTestMap(destinations?
, pages?
, destinationOrder?
)
Parameters​
Name | Type | Default value |
---|---|---|
destinations | string [] | HotTestDestination [] | { [name: string]: string | HotTestDestination ; } | [] |
pages | Object | {} |
destinationOrder | string [] | [] |
Defined in​
Properties​
destinationOrder​
• destinationOrder: string
[]
The order in which destinations are supposed to execute. This is ignored if the destinations are an array.
Defined in​
destinations​
• destinations: HotTestDestination
[] | { [name: string]: HotTestDestination
; }
The order in which paths are to be taken. Each destination is a string in a type -> path order. The type could be either a page or api route. For example:
[
"page:signin_page -> signin_path",
"page:account_page -> change_username_path",
"page:account_page -> change_password_path",
"page:account_page -> change_name_path -> change_address_path",
"page:account_page -> signout_path",
"api:account_api_route -> signout_route_method -> signout_test_path"
]
The first string to the left of the -> will always be the type, such as a page or an api route. Any strings to the right of the -> will be a path, even when chaining addtional ->'s.
Defined in​
pages​
• pages: Object
The test pages to execute.
Index signature​
â–ª [name: string
]: HotTestPage