Unverified Commit 1e150c5d authored by Matt Mohandiss's avatar Matt Mohandiss Committed by GitHub

Update finders.dart (#55936)

Fixed #55858
parent a58d50de
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment