MCPcopy Create free account
hub / github.com/angular/components / locatorForAll

Function locatorForAll

src/cdk/testing/harness-environment.ts:180–184  ·  view source on GitHub ↗

* Creates an asynchronous locator function that can be used to find `ComponentHarness` instances * or elements under the root element of this `HarnessEnvironment`. * * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and * `IdIsD1Harness.hostSelector

(
    ...queries: T
  )

Source from the content-addressed store, hash-verified

178 * the union of all result types for each query.
179 */
180 locatorForAll<T extends (HarnessQuery<any> | string)[]>(
181 ...queries: T
182 ): () => Promise<LocatorFnResult<T>[]> {
183 return () => this._getAllHarnessesAndTestElements(queries);
184 }
185
186 /** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */
187 async rootHarnessLoader(): Promise<HarnessLoader> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected