MCPcopy
hub / github.com/angular/angular / toHaveText

Method toHaveText

packages/private/testing/matchers/index.ts:30–30  ·  view source on GitHub ↗

* Expect the element to have exactly the given text. * * @usageNotes * ### Example * * {@example testing/ts/matchers.ts region='toHaveText'}

(expected: string)

Source from the content-addressed store, hash-verified

28 * {@example testing/ts/matchers.ts region='toHaveText'}
29 */
30 toHaveText(expected: string): boolean;
31
32 /**
33 * Expect the element to have the given CSS class.

Calls

no outgoing calls