Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot be UITested #6

Closed
basilmariano opened this issue Jun 26, 2020 · 2 comments
Closed

Cannot be UITested #6

basilmariano opened this issue Jun 26, 2020 · 2 comments

Comments

@basilmariano
Copy link

basilmariano commented Jun 26, 2020

Need to add optional parameter Key to be able to use integration test

@mono0926
Copy link
Owner

mono0926 commented Jun 26, 2020

Do you refer to like this method?
https://pub.dev/documentation/adaptive_dialog/latest/adaptive_dialog/showOkAlertDialog.html

This is a method, not a Widget, so key isn’t needed like official dialog method:
https://api.flutter.dev/flutter/material/showDialog.html

You can write a test like this without key:
https://github.com/mono0926/adaptive_dialog/pull/2/files

@basilmariano
Copy link
Author

basilmariano commented Jun 29, 2020

it looks like the sample test is only possible in Widget Test, but it is not possible when doing the IntegrationTest using flutter_driver.

Please excuse me because Im totally new in Flutter dev. If you could provide sample Integration test that finds the Alert buttons or action sheet buttons and Tap it using flutter_driver, that would be great :)

P.S I love your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants