dom-assertions
Low-level accessibility assertions for testing DOM elements.
The dom-assertions
package provides the low-level functionality for developing
custom matchers/assertions for various test runners and assertion libraries.
Adapters
Installation
npm install --save-dev dom-assertions
yarn add --dev dom-assertions
pnpm add --save-dev dom-assertions
Assertions
assertElementHasDescription
assertElementHasErrorMessage
assertElementHasName
assertElementIsInvalid
assertElementIsRequired
assertElementIsValid