Skip to content

Conversation

@8rine23
Copy link
Contributor

@8rine23 8rine23 commented Mar 27, 2022

fixes #100859

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Mar 27, 2022
Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an additional problem here. The textContaining method doesn't have a findRichText parameter.

@8rine23
Copy link
Contributor Author

8rine23 commented Mar 29, 2022

@HansMuller
Thanks for commenting on this pull-request.
I would like to address the problem, but I don't know how to fix the documentation.
Could you please tell me how to fix the textContaining document?

@HansMuller
Copy link
Contributor

It looks like the example is wrong. The text finder has a findRichText parameter, the textContaining finder does not.

@goderbauer
Copy link
Member

@HansMuller The textContaining matcher does have a findRichText property on master: https://master-api.flutter.dev/flutter/flutter_test/CommonFinders/textContaining.html. With that, this change looks fine to me.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@goderbauer goderbauer merged commit 9313fb8 into flutter:master Apr 20, 2022
Copy link

@jen801 jen801 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packages/flutter_test/lib/src/finders.dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The sample code used within the comments in textContaining is wrong

4 participants