TestabilityRegistry
A global registry of Testability
instances for specific elements.
class TestabilityRegistry {
registerApplication(token: any, testability: Testability)
unregisterApplication(token: any)
unregisterAllApplications()
getTestability(elem: any): Testability | null
getAllTestabilities(): Testability[]
getAllRootElements(): any[]
findTestabilityInTree(elem: Node, findInAncestors: boolean = true): Testability | null
}
Methods
Registers an application with a testability hook so that it can be tracked |
||||||
Parameters
|
Unregisters an application. |
Unregisters all applications |
ParametersThere are no parameters. |
Get a testability hook associated with the application |
|||
Parameters
Returns
|
Get all registered testabilities |
Get all registered applications(root elements) |
ParametersThere are no parameters. Returns
|
Find testability of a node in the Tree |
||||||
Parameters
Returns
|