Update finders.dart (#55936)

Fixed #55858
This commit is contained in:
Matt Mohandiss
2020-04-29 17:33:47 -04:00
committed by GitHub
parent a58d50deb1
commit 1e150c5d95

View File

@@ -306,7 +306,7 @@ class CommonFinders {
Finder bySemanticsLabel(Pattern label, { bool skipOffstage = true }) {
if (WidgetsBinding.instance.pipelineOwner.semanticsOwner == null)
throw StateError('Semantics are not enabled. '
'Make sure to call tester.enableSemantics() before using '
'Make sure to call tester.ensureSemantics() before using '
'this finder, and call dispose on its return value after.');
return byElementPredicate(
(Element element) {