MCPcopy
hub / github.com/vitest-dev/vitest / toHaveSelection

Method toHaveSelection

packages/browser/jest-dom.d.ts:676–676  ·  view source on GitHub ↗

* @description * This allows to assert that an element has a * [text selection](https://developer.mozilla.org/en-US/docs/Web/API/Selection). * * This is useful to check if text or part of the text is selected within an * element. The element can be either an input of type text, a text

(selection?: string)

Source from the content-addressed store, hash-verified

674 * @see https://vitest.dev/api/browser/assertions#tohaveselection
675 */
676 toHaveSelection(selection?: string): R
677
678 /**
679 * @description

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected