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

Function locatorForAll

src/cdk/testing/component-harness.ts:451–455  ·  view source on GitHub ↗

* Creates an asynchronous locator function that can be used to find `ComponentHarness` instances * or elements under the host element of this `ComponentHarness`. * * 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

449 * the union of all result types for each query.
450 */
451 protected locatorForAll<T extends (HarnessQuery<any> | string)[]>(
452 ...queries: T
453 ): () => Promise<LocatorFnResult<T>[]> {
454 return this.locatorFactory.locatorForAll(...queries);
455 }
456
457 /**
458 * Flushes change detection and async tasks in the Angular zone.

Callers

nothing calls this directly

Calls 1

locatorForAllMethod · 0.80

Tested by

no test coverage detected