MCPcopy
hub / github.com/angular/components / locatorForOptional

Method locatorForOptional

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

* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance * or element under the root element of this `LocatorFactory`. * * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` * * ```html * </di

(
    ...queries: T
  )

Source from the content-addressed store, hash-verified

232 * result types for each query or null.
233 */
234 locatorForOptional<T extends (HarnessQuery<any> | string)[]>(
235 ...queries: T
236 ): () => Promise<LocatorFnResult<T> | null>;
237

Callers 15

_getTriggerMethod · 0.80
MatTooltipHarnessClass · 0.80
MatPaginatorHarnessClass · 0.80
getAvatarMethod · 0.80
MatFormFieldHarnessClass · 0.80
getControlMethod · 0.80
getLabelFunction · 0.80
isOpenMethod · 0.80
MatGridTileHarnessClass · 0.80
getNoDataRowMethod · 0.80
withMethod · 0.80
_getMenuPanelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected