* Searches for an instance of the component corresponding to the given harness type under the * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found. * @param query A query for a harness to create * @return A boolean indicating if an instance was found.
(query: HarnessQuery<T>)
| 299 | * @return A boolean indicating if an instance was found. |
| 300 | */ |
| 301 | async hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean> { |
| 302 | return (await this.locatorForOptional(query)()) !== null; |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * Searches for an element with the given selector under the evironment's root element, |
nothing calls this directly
no test coverage detected