We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 063dbcc commit 1aa9cf5Copy full SHA for 1aa9cf5
lib/src/matchers/jest_dom/has_description.dart
@@ -141,7 +141,7 @@ class _HasDescription extends CustomMatcher with ElementTextContentMatcherMixin
141
142
final elementsWithDescriptions = <Element>[];
143
_idsOfElementsThatDescribe(item)?.forEach((id) {
144
- final elWithDesc = querySelector('#$id');
+ final elWithDesc = querySelector('#${Css.escape(id)}');
145
if (elWithDesc != null) {
146
elementsWithDescriptions.add(elWithDesc);
147
}
0 commit comments