Matchers topic
All of the jest-dom custom matchers are available, with slightly different names to match Dart's naming conventions.
Libraries
Constants
- isChecked → const Matcher Matchers
-
Allows you to check whether the given element is
checked
. - isChecked → const Matcher Matchers
-
Allows you to check whether the given element is
checked
. - isChecked → const Matcher Matchers
-
Allows you to check whether the given element is
checked
. - isDisabled → const Matcher Matchers
- Allows you to assert whether an element is disabled from the user's perspective.
- isDisabled → const Matcher Matchers
- Allows you to assert whether an element is disabled from the user's perspective.
- isDisabled → const Matcher Matchers
- Allows you to assert whether an element is disabled from the user's perspective.
- isEmptyDomElement → const Matcher Matchers
- Allows you to assert whether an element has content or not.
- isEmptyDomElement → const Matcher Matchers
- Allows you to assert whether an element has content or not.
- isEmptyDomElement → const Matcher Matchers
- Allows you to assert whether an element has content or not.
- isEnabled → const Matcher Matchers
- Allows you to check whether an element is not disabled from the user's perspective.
- isEnabled → const Matcher Matchers
- Allows you to check whether an element is not disabled from the user's perspective.
- isEnabled → const Matcher Matchers
- Allows you to check whether an element is not disabled from the user's perspective.
- isFocused → const Matcher Matchers
- Allows you to assert whether an element has focus or not.
- isFocused → const Matcher Matchers
- Allows you to assert whether an element has focus or not.
- isFocused → const Matcher Matchers
- Allows you to assert whether an element has focus or not.
- isInTheDocument → const Matcher Matchers
- Allows you to assert whether an element is present in the document or not.
- isInTheDocument → const Matcher Matchers
- Allows you to assert whether an element is present in the document or not.
- isInTheDocument → const Matcher Matchers
- Allows you to assert whether an element is present in the document or not.
- isPartiallyChecked → const Matcher Matchers
-
Allows you to check whether the given element is partially
checked
a.k.aindeterminate
. - isPartiallyChecked → const Matcher Matchers
-
Allows you to check whether the given element is partially
checked
a.k.aindeterminate
. - isPartiallyChecked → const Matcher Matchers
-
Allows you to check whether the given element is partially
checked
a.k.aindeterminate
.
Functions
-
containsElement(
Element descendant) → Matcher Matchers - Allows you to assert whether an element contains another element as a descendant or not.
-
containsElement(
Element descendant) → Matcher Matchers - Allows you to assert whether an element contains another element as a descendant or not.
-
containsElement(
Element descendant) → Matcher Matchers - Allows you to assert whether an element contains another element as a descendant or not.
-
excludesClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element does not have certain
classes
within its HTMLclass
attribute. -
excludesClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element does not have certain
classes
within its HTMLclass
attribute. -
excludesClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element does not have certain
classes
within its HTMLclass
attribute. -
hasAttribute(
String attribute, [dynamic valueOrMatcher = isNotNull]) → Matcher Matchers -
Allows you to check whether an element has an
attribute
that matches the providedvalueOrMatcher
or not. -
hasAttribute(
String attribute, [dynamic valueOrMatcher = isNotNull]) → Matcher Matchers -
Allows you to check whether an element has an
attribute
that matches the providedvalueOrMatcher
or not. -
hasAttribute(
String attribute, [dynamic valueOrMatcher = isNotNull]) → Matcher Matchers -
Allows you to check whether an element has an
attribute
that matches the providedvalueOrMatcher
or not. -
hasClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element has certain
classes
within its HTMLclass
attribute. -
hasClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element has certain
classes
within its HTMLclass
attribute. -
hasClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element has certain
classes
within its HTMLclass
attribute. -
hasDescription(
[dynamic expectedDescription, bool normalizeWhitespace = true]) → Matcher Matchers - Allows you to check whether the given element has a description or not.
-
hasDescription(
[dynamic expectedDescription, bool normalizeWhitespace = true]) → Matcher Matchers - Allows you to check whether the given element has a description or not.
-
hasDescription(
[dynamic expectedDescription, bool normalizeWhitespace = true]) → Matcher Matchers - Allows you to check whether the given element has a description or not.
-
hasDisplayValue(
[dynamic value]) → Matcher Matchers - Allows you to check whether the given form element has the specified displayed value (the one the end user will see).
-
hasDisplayValue(
[dynamic value]) → Matcher Matchers - Allows you to check whether the given form element has the specified displayed value (the one the end user will see).
-
hasDisplayValue(
[dynamic value]) → Matcher Matchers - Allows you to check whether the given form element has the specified displayed value (the one the end user will see).
-
hasExactClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element has certain
classes
within its HTMLclass
attribute, with no additional or duplicated classes like the hasClasses matcher allows. -
hasExactClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element has certain
classes
within its HTMLclass
attribute, with no additional or duplicated classes like the hasClasses matcher allows. -
hasExactClasses(
dynamic classes) → Matcher Matchers -
Allows you to check whether an Element has certain
classes
within its HTMLclass
attribute, with no additional or duplicated classes like the hasClasses matcher allows. -
hasFormValues(
Map< MatchersString, dynamic> valuesMap) → Matcher -
Allows you to check if a FormElement or FieldSetElement contains form controls for each given name
in the provided
valuesMap
with the corresponding value. -
hasFormValues(
Map< MatchersString, dynamic> valuesMap) → Matcher -
Allows you to check if a FormElement or FieldSetElement contains form controls for each given name
in the provided
valuesMap
with the corresponding value. -
hasFormValues(
Map< MatchersString, dynamic> valuesMap) → Matcher -
Allows you to check if a FormElement or FieldSetElement contains form controls for each given name
in the provided
valuesMap
with the corresponding value. -
hasStyles(
Map< MatchersString, dynamic> styles) → Matcher - Allows you to check if a certain element has some specific CSS property value(s) applied.
-
hasStyles(
Map< MatchersString, dynamic> styles) → Matcher - Allows you to check if a certain element has some specific CSS property value(s) applied.
-
hasStyles(
Map< MatchersString, dynamic> styles) → Matcher - Allows you to check if a certain element has some specific CSS property value(s) applied.
-
hasTextContent(
[dynamic expected, bool normalizeWhitespace = true]) → Matcher Matchers -
Allows you to check whether an element has the
expected
text content or not. -
hasTextContent(
[dynamic expected, bool normalizeWhitespace = true]) → Matcher Matchers -
Allows you to check whether an element has the
expected
text content or not. -
hasTextContent(
[dynamic expected, bool normalizeWhitespace = true]) → Matcher Matchers -
Allows you to check whether an element has the
expected
text content or not. -
hasValue(
[dynamic value]) → Matcher Matchers -
Allows you to check whether the given form element has the specified
value
. -
hasValue(
[dynamic value]) → Matcher Matchers -
Allows you to check whether the given form element has the specified
value
. -
hasValue(
[dynamic value]) → Matcher Matchers -
Allows you to check whether the given form element has the specified
value
.